Преглед изворни кода

Add compile time configuration flags check

The NO_FILESYSTEMS flag makes no sense if NO_FILES is not set. Add a
compile-time check for that.
Tomasz Gorochowik пре 6 година
родитељ
комит
d5fb6fdb66
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/civetweb.c

+ 3 - 0
src/civetweb.c

@@ -141,6 +141,9 @@ mg_static_assert(sizeof(void *) >= sizeof(int), "data type size check");
 #define ALTERNATIVE_QUEUE
 #endif
 
+#if defined(NO_FILESYSTEMS) && !defined(NO_FILES)
+#error "Inconsistent build flags, NO_FILESYSTEMS requires NO_FILES"
+#endif
 
 /* DTL -- including winsock2.h works better if lean and mean */
 #if !defined(WIN32_LEAN_AND_MEAN)