Fossil SCM

The resource compiler workaround in the previous check-in is only needed for MinGW, this check-in makes the MSVC build work again.

mistachkin 2014-08-25 14:30 UTC optionalMiniz
Commit 3d8431045399d973fe01629dd38233f27d421118
1 file changed +5
--- win/fossil.rc
+++ win/fossil.rc
@@ -32,12 +32,17 @@
3232
#define _RC_COMPILE_
3333
#include "config.h"
3434
#include "sqlite3.h"
3535
3636
#if defined(FOSSIL_ENABLE_MINIZ)
37
+#if defined(__MINGW32__)
3738
#include "minizver.h"
3839
#else
40
+#define MINIZ_HEADER_FILE_ONLY
41
+#include "miniz.c"
42
+#endif /* defined(__MINGW32__) */
43
+#else
3944
#include "zlib.h"
4045
#endif /* defined(FOSSIL_ENABLE_MINIZ) */
4146
4247
#if defined(FOSSIL_ENABLE_SSL)
4348
#include "openssl/opensslv.h"
4449
--- win/fossil.rc
+++ win/fossil.rc
@@ -32,12 +32,17 @@
32 #define _RC_COMPILE_
33 #include "config.h"
34 #include "sqlite3.h"
35
36 #if defined(FOSSIL_ENABLE_MINIZ)
 
37 #include "minizver.h"
38 #else
 
 
 
 
39 #include "zlib.h"
40 #endif /* defined(FOSSIL_ENABLE_MINIZ) */
41
42 #if defined(FOSSIL_ENABLE_SSL)
43 #include "openssl/opensslv.h"
44
--- win/fossil.rc
+++ win/fossil.rc
@@ -32,12 +32,17 @@
32 #define _RC_COMPILE_
33 #include "config.h"
34 #include "sqlite3.h"
35
36 #if defined(FOSSIL_ENABLE_MINIZ)
37 #if defined(__MINGW32__)
38 #include "minizver.h"
39 #else
40 #define MINIZ_HEADER_FILE_ONLY
41 #include "miniz.c"
42 #endif /* defined(__MINGW32__) */
43 #else
44 #include "zlib.h"
45 #endif /* defined(FOSSIL_ENABLE_MINIZ) */
46
47 #if defined(FOSSIL_ENABLE_SSL)
48 #include "openssl/opensslv.h"
49

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button