Browse Source

Use #ifdef around civetweb header include (#387)

bel 8 years ago
parent
commit
5eecdfe3ca
1 changed files with 2 additions and 0 deletions
  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