浏览代码

Additional check for bool header definition

Ray 8 年之前
父节点
当前提交
5370fe18e0
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/raylib.h

+ 1 - 2
src/raylib.h

@@ -296,9 +296,8 @@
 //----------------------------------------------------------------------------------
 #ifndef __cplusplus
 // Boolean type
-    #if !defined(_STDBOOL_H)
+    #if !defined(_STDBOOL_H) || !defined(__STDBOOL_H)   // CLang uses second form
         typedef enum { false, true } bool;
-        #define _STDBOOL_H
     #endif
 #endif