Work around an ugly glibc hack.
authorBruno Haible <bruno@clisp.org>
Sun, 18 Feb 2007 20:55:53 +0000 (20:55 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 18 Feb 2007 20:55:53 +0000 (20:55 +0000)
ChangeLog
lib/stdlib_.h

index 8dffdfb9400a1de8e47b81d7189e1771b5afae9d..aaf8b0ba148867b7e02ae8b7a413714c84a47648 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-18  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdlib_.h: Handle glibc's special invocation convention
+       specially.
+
 2007-02-18  Bruno Haible  <bruno@clisp.org>
 
        * modules/stdlib-tests: New file.
index d2616a135b0f98fd03f77ef175d0238fa0f435a5..5a23da1e8347406ab66868e0d2966715f8f4db72 100644 (file)
    along with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
+#if defined __need_malloc_and_calloc
+/* Special invocation convention inside glibc header files.  */
+#include @ABSOLUTE_STDLIB_H@
+#else
+/* Normal invocation convention.  */
 #ifndef _GL_STDLIB_H
 #define _GL_STDLIB_H
 
@@ -83,4 +88,5 @@ extern int mkstemp (char *template);
 }
 #endif
 
+#endif /* _GL_STDLIB_H */
 #endif