From 4ed1ebf874a73cc8cf1397cc88ad93b27b802bab Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 6 Apr 2024 19:12:35 +0200 Subject: [PATCH] avoid crash when compiled with lto --- src/include/ngspice/bool.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/ngspice/bool.h b/src/include/ngspice/bool.h index c5f70e331..7f398d105 100644 --- a/src/include/ngspice/bool.h +++ b/src/include/ngspice/bool.h @@ -1,20 +1,20 @@ #ifndef ngspice_BOOL_H #define ngspice_BOOL_H -//typedef unsigned char bool; +#if defined (__MINGW32__) || defined (_MSC_VER) #ifndef __cplusplus typedef int bool; #endif +#else +#include +#endif typedef int BOOL; - #define BOOLEAN int #define TRUE 1 #define FALSE 0 #define NO 0 #define YES 1 - - #endif