浏览代码

Make ALTERNATIVE_QUEUE the new default

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

+ 10 - 0
src/civetweb.c

@@ -96,6 +96,16 @@ mg_static_assert(sizeof(void *) == 4 || sizeof(void *) == 8,
 mg_static_assert(sizeof(void *) >= sizeof(int), "data type size check");
 
 
+/* Alternative queue is well tested and should be the new default */
+#ifdef NO_ALTERNATIVE_QUEUE
+#ifdef ALTERNATIVE_QUEUE
+#error "Define ALTERNATIVE_QUEUE or NO_ALTERNATIVE_QUEUE or none, but not both"
+#endif
+#else
+#define ALTERNATIVE_QUEUE
+#endif
+
+
 /* DTL -- including winsock2.h works better if lean and mean */
 #ifndef WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN