1
0
feito fork de xt-sys/exectos

Separate boolean definition for C and C++

Esse commit está contido em:
2025-09-23 19:06:18 +02:00
commit 9298aef87e
3 arquivos alterados com 14 adições e 10 exclusões

Ver Arquivo

@@ -15,14 +15,26 @@
#define XTCLINK extern "C"
#define NULLPTR nullptr
/* C++ types */
/* C++ boolean type */
typedef bool BOOLEAN, *PBOOLEAN;
#define TRUE true
#define FALSE false
/* C++ widechar type */
typedef wchar_t wchar;
#else
/* C definitions */
#define XTCLINK
#define NULLPTR ((void *)0)
/* C types */
/* C boolean type */
typedef enum _BOOLEAN
{
FALSE = 0,
TRUE = 1
} BOOLEAN, *PBOOLEAN;
/* C widechar type */
typedef unsigned short wchar;
#endif