浏览代码

Use #ifdef around civetweb header include (#387)

bel 8 年之前
父节点
当前提交
5eecdfe3ca
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/civetweb.c

+ 2 - 0
src/civetweb.c

@@ -108,9 +108,11 @@ mg_static_assert(sizeof(void *) >= sizeof(int), "data type size check");
 #endif /* __SYMBIAN32__ */
 
 
+#ifndef CIVETWEB_HEADER_INCLUDED
 /* Include the header file here, so the CivetWeb interface is defined for the
  * entire implementation, including the following forward definitions. */
 #include "civetweb.h"
+#endif
 
 
 #ifndef IGNORE_UNUSED_RESULT