tradcpp: fix bool issue with newer compilers (GCC 15)
tradcpp/bool.h used the wrong check for determining C99+ stdbool.h support by the compiler. Use __STDC_VERSION__ rather than __STDC__.
This commit is contained in:
parent
38a1b9fcca
commit
465b8461c6
|
|
@ -30,7 +30,7 @@
|
|||
#ifndef BOOL_H
|
||||
#define BOOL_H
|
||||
|
||||
#if __STDC__ > 199901
|
||||
#if __STDC_VERSION__ > 199901
|
||||
#include <stdbool.h>
|
||||
#else
|
||||
typedef int bool;
|
||||
|
|
|
|||
Loading…
Reference in New Issue