ThirdParty
Ert
lib
include
ert
util
msvc_stdbool.h
Go to the documentation of this file.
1
/*
2
When building with MSVC this file is renamed to stdbool.h and copied into the
3
list of headers. The situation is as follows:
4
5
- The ERT code makes use of stdbool in many places. The msvc C
6
compiler does not have a stdbool header, i.e. the #include <stdbool.h>
7
statements fail when compiling.
8
9
- When included in a C++ project the compiler already has a bool
10
defined; it is therefore important not to redefine this symbol if
11
we are compiling C++.
12
13
*/
14
15
#ifndef __cplusplus
16
17
typedef
char
bool
;
18
#define true 1
19
#define false 0
20
21
#endif
bool
char bool
Definition:
msvc_stdbool.h:17