Browse Source

Try to fix linkage for unit test environment

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

+ 3 - 1
test/private.c

@@ -27,13 +27,15 @@
 #ifndef _CRT_SECURE_NO_WARNINGS
 #ifndef _CRT_SECURE_NO_WARNINGS
 #define _CRT_SECURE_NO_WARNINGS
 #define _CRT_SECURE_NO_WARNINGS
 #endif
 #endif
-#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 USE_TIMERS
+#define CIVETWEB_API static
+#include "../include/civetweb.h"
 #include "../src/civetweb.c"
 #include "../src/civetweb.c"
 
 
 #include <stdlib.h>
 #include <stdlib.h>

+ 4 - 1
test/timertest.c

@@ -27,13 +27,16 @@
 #ifndef _CRT_SECURE_NO_WARNINGS
 #ifndef _CRT_SECURE_NO_WARNINGS
 #define _CRT_SECURE_NO_WARNINGS
 #define _CRT_SECURE_NO_WARNINGS
 #endif
 #endif
-#define CIVETWEB_API static
 #endif
 #endif
 
 
 
 
 #define USE_TIMERS
 #define USE_TIMERS
+#define CIVETWEB_API static
+#include "../include/civetweb.h"
 #include "../src/civetweb.c"
 #include "../src/civetweb.c"
 
 
+#include <stdlib.h>
+
 #include "timertest.h"
 #include "timertest.h"