X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=win32%2Fstdbool.h;h=40e2184534fe23724a91c978dad1b8eae83204a4;hb=e628f683385763274b551d468107872a058b31d7;hp=c009a54c5cb10307b55454f5aadb70ef54ef9ed3;hpb=5e2512551793296b59bb85327620ad0f390fce41;p=cparser diff --git a/win32/stdbool.h b/win32/stdbool.h index c009a54..40e2184 100644 --- a/win32/stdbool.h +++ b/win32/stdbool.h @@ -7,10 +7,17 @@ #ifndef __cplusplus -#define bool int -#define true 1 -#define false 0 +#ifdef __INTEL_COMPILER +#define bool _Bool +#define true ((_Bool)1) +#define false ((_Bool)0) +#else +#define bool unsigned +#define true 1 +#define false 0 + +#endif #endif /* __cplusplus */ -#endif /* stdbool.h */ +#endif