mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#804 Updated ERT based on 6287acdb0d039ce13eb9956b67035280a3de9539
This commit is contained in:
26
ThirdParty/Ert/VisualStudio/stdbool.h
vendored
Normal file
26
ThirdParty/Ert/VisualStudio/stdbool.h
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
The ert code is based on C99, and in particular makes extensive use
|
||||
of the C99 feature stdbool.h. When including the ert headers in a
|
||||
VisualStudio C++ project this creates problems because the
|
||||
VisualStudio C compiler is not C99 conforming, and the compiler will
|
||||
complain it can not find the stdbool.h header.
|
||||
|
||||
The symbols defined in the stdbool header are actually correctly(?)
|
||||
defined by the VisualStudio compiler already, so this header file
|
||||
does not define any bool related symbols!
|
||||
|
||||
To actually use this file you should copy it manually into the ert
|
||||
include directory as used by VisualStudio.
|
||||
*/
|
||||
|
||||
#ifndef ERT_STDBOOL_H
|
||||
#define ERT_STDBOOL_H
|
||||
|
||||
#ifndef __cplusplus
|
||||
typedef int bool;
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user