OSDN Git Service

[Refactor] #939 C言語ではコンパイル不可能な記述 (クラス等)があるのでC++かどうかを調べるマクロは削除した / Removed macro inves...
authorHourier <grapefox.whitelucifer.0408@gmail.com>
Sun, 1 Aug 2021 06:11:57 +0000 (15:11 +0900)
committerHourier <grapefox.whitelucifer.0408@gmail.com>
Sat, 7 Aug 2021 02:28:34 +0000 (11:28 +0900)
src/system/h-type.h

index d3f6432..2981d62 100644 (file)
@@ -63,13 +63,6 @@ typedef int errr;
 /* A signed byte of memory */
 /* typedef signed char syte; */
 typedef unsigned char byte; /*!< byte型をunsighned charとして定義 / Note that unsigned values can cause math problems / An unsigned byte of memory */
-#ifndef __cplusplus
-#if __STDC_VERSION__ >= 199901L
-#include <stdbool.h>
-#else
-typedef char bool; /*!< bool型をcharとして定義 / Note that a bool is smaller than a full "int" / Simple True/False type */
-#endif
-#endif
 typedef unsigned int uint; /* uint型をintとして定義 /  An unsigned, "standard" integer (often pre-defined) */
 
 /* The largest possible unsigned integer */