]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/commitdiff
Add an obvious comment to <stdio.h> for fixincludes.
authorElliott Hughes <enh@google.com>
Wed, 6 Aug 2014 00:07:46 +0000 (17:07 -0700)
committerElliott Hughes <enh@google.com>
Wed, 6 Aug 2014 16:03:52 +0000 (09:03 -0700)
We don't want GCC's fixincludes to touch our <stdio.h> because we
want to support multiple platform versions with one toolchain. Give
them a nice easy unambiguous string to look for.

Bug: http://code.google.com/p/android/issues/detail?id=73728
Change-Id: I15cb9a2c9eb0a44b0965dc2139f224f2b6e68ea1

libc/include/stdio.h

index 9c6bd3f94efb114876c681cd51498a2cb9800c86..74e5732945162a46598ca3125d3dbb23a049a8c4 100644 (file)
 #ifndef        _STDIO_H_
 #define        _STDIO_H_
 
+/*
+ * This file must contain a reference to __gnuc_va_list so that GCC's
+ * fixincludes knows that that's what's being used for va_list, and so
+ * to leave our <stdio.h> alone. (fixincludes gets in the way of pointing
+ * one toolchain at various different sets of platform headers.)
+ * If you alter this comment, be sure to keep "__gnuc_va_list" in it!
+ */
+
 #include <sys/cdefs.h>
 #include <sys/types.h>