1 /*
2  * Copyright 2009 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6 
7 #ifndef NATIVE_CLIENT_SRC_SHARED_UTILS_TYPES_H__
8 #define NATIVE_CLIENT_SRC_SHARED_UTILS_TYPES_H__
9 
10 #include "native_client/src/include/build_config.h"
11 #include "native_client/src/include/portability.h"
12 
13 EXTERN_C_BEGIN
14 
15 /* Note: the names Bool, FALSE and TRUE are defined in some directories,
16  * which conflict with native_client/src/include/portability.h. Hence,
17  * this file has not been encorporated into that header file.
18  */
19 
20 /* Define an implementation for boolean values. */
21 #if NACL_WINDOWS
22 typedef BOOL Bool;
23 #else
24 typedef enum {
25   FALSE,
26   TRUE
27 } Bool;
28 #endif
29 
30 EXTERN_C_END
31 
32 #endif   /* NATIVE_CLIENT_SRC_SHARED_UTILS_TYPES_H__ */
33