Переглянути джерело

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