瀏覽代碼

Check to avoid bool redefinition

Ray San 8 年之前
父節點
當前提交
399d4b5f46
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/raylib.h

+ 1 - 1
src/raylib.h

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