瀏覽代碼

add include guards on config.h (#2888)

Jeffery Myers 2 年之前
父節點
當前提交
63da7cdec6
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/config.h

+ 4 - 1
src/config.h

@@ -24,7 +24,8 @@
 *     3. This notice may not be removed or altered from any source distribution.
 *     3. This notice may not be removed or altered from any source distribution.
 *
 *
 **********************************************************************************************/
 **********************************************************************************************/
-
+#ifndef CONFIG_H
+#define CONFIG_H
 //------------------------------------------------------------------------------------
 //------------------------------------------------------------------------------------
 // Module selection - Some modules could be avoided
 // Module selection - Some modules could be avoided
 // Mandatory modules: rcore, rlgl, utils
 // Mandatory modules: rcore, rlgl, utils
@@ -236,3 +237,5 @@
 // utils: Configuration values
 // utils: Configuration values
 //------------------------------------------------------------------------------------
 //------------------------------------------------------------------------------------
 #define MAX_TRACELOG_MSG_LENGTH          128    // Max length of one trace-log message
 #define MAX_TRACELOG_MSG_LENGTH          128    // Max length of one trace-log message
+
+#endif // CONFIG_H