Commit 4a8e607d 4a8e607d542a14146223022534362ee81a63898b by Sergey Poznyakoff

Build types.h from types.hin to provide mu_off_t for the end user

1 parent dafd0440
......@@ -19,10 +19,15 @@
## 02110-1301 USA
BUILT_SOURCES=errno.h
EXTRA_DIST=errno.hin
EXTRA_DIST=errno.hin types.hin
errno.h: $(top_srcdir)/mailbox/errors errno.hin
$(AWK) -f $(top_srcdir)/scripts/generr.awk $^ > $@
types.h: $(top_srcdir)/include/mailutils/types.hin Makefile
sed 's/MU_OFF_TYPE/$(MU_OFF_TYPE)/' $(top_srcdir)/include/mailutils/types.hin > $@
DISTCLEANFILES = types.h
pkginclude_DATA = types.h
pkginclude_HEADERS = \
address.h \
argcv.h \
......@@ -65,7 +70,6 @@ pkginclude_HEADERS = \
stream.h \
sql.h \
tls.h \
types.h \
url.h
nobase_pkginclude_HEADERS = \
......
......@@ -54,6 +54,8 @@ struct _mu_ticket;
struct _mu_url;
struct _mu_wicket;
typedef MU_OFF_TYPE mu_off_t;
typedef struct _mu_address *mu_address_t;
typedef struct _mu_attribute *mu_attribute_t;
typedef struct _mu_authority *mu_authority_t;
......