OSDN Git Service

Revert "Add SIZE_MAX to <stdint.h> in a way that might actually work."
authorElliott Hughes <enh@google.com>
Wed, 12 Jun 2013 22:18:47 +0000 (22:18 +0000)
committerElliott Hughes <enh@google.com>
Wed, 12 Jun 2013 22:18:47 +0000 (22:18 +0000)
This reverts commit d8627af159c6b1bc40296fb29297c61b30a5a8e2 which caused build breakage:

In file included from bionic/libc/include/limits.h:86:0,
                 from bionic/libc/include/stdint.h:33,
                 from bionic/libc/arch-arm/bionic/crtbegin.c:31:
bionic/libc/include/sys/limits.h:30:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
make: *** [out/target/product/generic/obj/lib/crtbegin_dynamic1.o] Error 1

Change-Id: I128095ecb99df92626e1f57e34c61e08c98a4078

libc/include/stdint.h

index 6f676ce..222ff1b 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <stddef.h>
 #include <sys/_types.h>
-#include <limits.h> /* For SIZE_MAX. */
+#include <machine/limits.h> /* For SIZE_MAX. */
 
 #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
 #  define __STDINT_LIMITS