avoid crash when compiled with lto
This commit is contained in:
parent
1cdacad261
commit
4ed1ebf874
|
|
@ -1,20 +1,20 @@
|
||||||
#ifndef ngspice_BOOL_H
|
#ifndef ngspice_BOOL_H
|
||||||
#define ngspice_BOOL_H
|
#define ngspice_BOOL_H
|
||||||
|
|
||||||
//typedef unsigned char bool;
|
#if defined (__MINGW32__) || defined (_MSC_VER)
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
typedef int bool;
|
typedef int bool;
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#include <stdbool.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef int BOOL;
|
typedef int BOOL;
|
||||||
|
|
||||||
|
|
||||||
#define BOOLEAN int
|
#define BOOLEAN int
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#define NO 0
|
#define NO 0
|
||||||
#define YES 1
|
#define YES 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue