Browse Source

Unit test linker broken ???

bel 8 năm trước cách đây
mục cha
commit
b20b6683c9
1 tập tin đã thay đổi với 4 bổ sung7 xóa
  1. 4 7
      test/private.c

+ 4 - 7
test/private.c

@@ -27,24 +27,21 @@
 #ifndef _CRT_SECURE_NO_WARNINGS
 #ifndef _CRT_SECURE_NO_WARNINGS
 #define _CRT_SECURE_NO_WARNINGS
 #define _CRT_SECURE_NO_WARNINGS
 #endif
 #endif
-#else
-#include <pthread.h>
-#include <time.h>
+#define CIVETWEB_API static
 #endif
 #endif
 
 
 #ifdef REPLACE_CHECK_FOR_LOCAL_DEBUGGING
 #ifdef REPLACE_CHECK_FOR_LOCAL_DEBUGGING
 #undef MEMORY_DEBUGGING
 #undef MEMORY_DEBUGGING
 #endif
 #endif
 
 
-//#define CIVETWEB_API static
-//#include "../include/civetweb.h"
 #include "../src/civetweb.c"
 #include "../src/civetweb.c"
 
 
-#include "private.h"
-
 #include <stdlib.h>
 #include <stdlib.h>
 #include <time.h>
 #include <time.h>
 
 
+#include "private.h"
+
+
 /* This unit test file uses the excellent Check unit testing library.
 /* This unit test file uses the excellent Check unit testing library.
  * The API documentation is available here:
  * The API documentation is available here:
  * http://check.sourceforge.net/doc/check_html/index.html
  * http://check.sourceforge.net/doc/check_html/index.html