Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Side by Side Diff: src/include/portability.h

Issue 788193003: Create a build_config header file. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Support scons windows as well. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * This file should be at the top of the #include group, followed by 8 * This file should be at the top of the #include group, followed by
9 * standard system #include files, then by native client specific 9 * standard system #include files, then by native client specific
10 * includes. 10 * includes.
11 * 11 *
12 * TODO(gregoryd): explain why. (Something to do with windows include 12 * TODO(gregoryd): explain why. (Something to do with windows include
13 * files, to be reconstructed.) 13 * files, to be reconstructed.)
14 */ 14 */
15 15
16 #ifndef NATIVE_CLIENT_SRC_INCLUDE_PORTABILITY_H_ 16 #ifndef NATIVE_CLIENT_SRC_INCLUDE_PORTABILITY_H_
17 #define NATIVE_CLIENT_SRC_INCLUDE_PORTABILITY_H_ 1 17 #define NATIVE_CLIENT_SRC_INCLUDE_PORTABILITY_H_ 1
18 18
19 #include <stdlib.h> 19 #include <stdlib.h>
20 20
21 #include "native_client/src/include/nacl_base.h" 21 #include "native_client/src/include/nacl_base.h"
22 #include "native_client/src/include/build_config.h"
22 #ifdef __native_client__ 23 #ifdef __native_client__
23 #include <bits/wordsize.h> 24 #include <bits/wordsize.h>
24 #else 25 #else
25 #include "native_client/src/trusted/service_runtime/include/bits/wordsize.h" 26 #include "native_client/src/trusted/service_runtime/include/bits/wordsize.h"
26 #endif 27 #endif
27 28
28 #include "native_client/src/include/nacl_compiler_annotations.h" 29 #include "native_client/src/include/nacl_compiler_annotations.h"
29 30
30 #if NACL_WINDOWS 31 #if NACL_WINDOWS
31 /* disable warnings for deprecated functions like getenv, etc. */ 32 /* disable warnings for deprecated functions like getenv, etc. */
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 * macros for run-time error detectors (such as Valgrind/Memcheck). 290 * macros for run-time error detectors (such as Valgrind/Memcheck).
290 */ 291 */
291 #if defined(_DEBUG) && NACL_LINUX 292 #if defined(_DEBUG) && NACL_LINUX
292 #include "native_client/src/third_party/valgrind/memcheck.h" 293 #include "native_client/src/third_party/valgrind/memcheck.h"
293 #define NACL_MAKE_MEM_UNDEFINED(a, b) (void) VALGRIND_MAKE_MEM_UNDEFINED(a, b) 294 #define NACL_MAKE_MEM_UNDEFINED(a, b) (void) VALGRIND_MAKE_MEM_UNDEFINED(a, b)
294 #else 295 #else
295 #define NACL_MAKE_MEM_UNDEFINED(a, b) 296 #define NACL_MAKE_MEM_UNDEFINED(a, b)
296 #endif 297 #endif
297 298
298 #endif /* NATIVE_CLIENT_SRC_INCLUDE_PORTABILITY_H_ */ 299 #endif /* NATIVE_CLIENT_SRC_INCLUDE_PORTABILITY_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698