From 2184fdfb4eb34fa5f7a65295f24762c4f6569c4a Mon Sep 17 00:00:00 2001 From: "binji@chromium.org" Date: Tue, 27 May 2014 23:50:25 +0000 Subject: [NaCl SDK] Fix include_next of stdlib.h This change moves include_next outside of the include guard. On PNaCl, including will include usr/include/stdlib.h. Naclports copies this file to toolchain/linux_pnacl/usr/local/include/stdlib.h, which will be included next. Since it uses the same include guard, the real stdlib.h won't be included. This change fixes the linux SDK builder: voronoi.cc:48:37: error: use of undeclared identifier 'rand_r' return static_cast(rand_r(&g_rand_state) & 255); ^ BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/293403010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273075 0039d316-1c4b-4281-b951-d872f2087c98 --- native_client_sdk/src/libraries/nacl_io/include/stdlib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'native_client_sdk') diff --git a/native_client_sdk/src/libraries/nacl_io/include/stdlib.h b/native_client_sdk/src/libraries/nacl_io/include/stdlib.h index 5ffae74..5bea35f 100644 --- a/native_client_sdk/src/libraries/nacl_io/include/stdlib.h +++ b/native_client_sdk/src/libraries/nacl_io/include/stdlib.h @@ -6,7 +6,6 @@ #define LIBRARIES_NACL_IO_INCLUDE_STDLIB_H_ #include -#include_next __BEGIN_DECLS @@ -15,3 +14,5 @@ char* realpath(const char* path, char* resolved_path); __END_DECLS #endif + +#include_next -- cgit v1.1