changeset 9181:1aba29f9c6fd

doc/headers/stdint.texi: Discuss #include_next issue.
author Simon Josefsson <simon@josefsson.org>
date Fri, 07 Sep 2007 10:33:34 +0000
parents aed85403a421
children 97ef915eafb0
files ChangeLog doc/headers/stdint.texi
diffstat 2 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-09-07  Simon Josefsson  <simon@josefsson.org>
+
+	* doc/headers/stdint.texi: Discuss #include_next issue.
+
 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
 
 	* build-aux/bootstrap: Remove obsolete comment about wget --help.
--- a/doc/headers/stdint.texi
+++ b/doc/headers/stdint.texi
@@ -29,3 +29,22 @@
 @item
 Macros are used instead of typedefs.
 @end itemize
+
+The stdint.h module uses @code{#include_next}.  If you wish to install
+the generated stdint.h file under another name, typically in order to
+be able to use some of the types defined by stdint.h in your public
+header file, you could use the following Makefile.am-snippet:
+
+@example
+
+BUILT_SOURCES += idn-int.h
+DISTCLEANFILES += idn-int.h
+nodist_include_HEADERS += idn-int.h
+
+idn-int.h:
+	if test -n "$(STDINT_H)"; then \
+		sed -e s/include_next/include/ gl/stdint.h > idn-int.h; \
+	else \
+		echo '#include <stdint.h>' > idn-int.h; \
+	fi
+@end example