ResInsight/ThirdParty/Ert/devel/VisualStudio/stdbool.h
Magne Sjaastad 04006370ac Added ERT as source code based on https://github.com/Ensembles/ert/ and commit 7b53b5f61f5b47e8169b72098b562071df394bc3
This is SVN commit 4117
Updated ResInsight cmakelists to build ERT and link directly
Removed precompiled ERT binaries
p4#: 20183
2013-01-17 13:33:59 +01:00

27 lines
758 B
C

/*
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 __STDBOOL_H__
#define __STDBOOL_H__
#ifndef __cplusplus
typedef int bool;
#define true 1
#define false 0
#endif
#endif