瀏覽代碼

Add conditional #ifdef prior to imconfig.h to facilitate inclusion in build systems (#255)

ocornut 10 年之前
父節點
當前提交
fd3c6067bf
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      imgui.h

+ 2 - 0
imgui.h

@@ -6,7 +6,9 @@
 
 #pragma once
 
+#if !defined(IMGUI_DISABLE_INCLUDE_IMCONFIG_H) || defined(IMGUI_INCLUDE_IMCONFIG_H)
 #include "imconfig.h"       // User-editable configuration file
+#endif
 #include <float.h>          // FLT_MAX
 #include <stdarg.h>         // va_list
 #include <stddef.h>         // ptrdiff_t, NULL