Fossil SCM

Fix x64 compilation on Windows using the MSVC toolset included with VS 2012.

mistachkin 2013-04-29 23:44 trunk
Commit ed544f3d9c2c734826def031bf8d281b69018581
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -968,11 +968,11 @@
968968
!endif
969969
970970
CFLAGS = -nologo -MT -O2
971971
BCC = $(CC) $(CFLAGS)
972972
TCC = $(CC) -c $(CFLAGS) $(MSCDEF) $(INCL)
973
-RCC = rc -D_WIN32 -D_MSC_VER $(INCL)
973
+RCC = rc $(CFLAGS) $(MSCDEF) $(INCL)
974974
LIBS = $(ZLIB) ws2_32.lib advapi32.lib
975975
LIBDIR = -LIBPATH:$(ZLIBDIR)
976976
977977
!ifdef FOSSIL_ENABLE_JSON
978978
TCC = $(TCC) -DFOSSIL_ENABLE_JSON=1
979979
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -968,11 +968,11 @@
968 !endif
969
970 CFLAGS = -nologo -MT -O2
971 BCC = $(CC) $(CFLAGS)
972 TCC = $(CC) -c $(CFLAGS) $(MSCDEF) $(INCL)
973 RCC = rc -D_WIN32 -D_MSC_VER $(INCL)
974 LIBS = $(ZLIB) ws2_32.lib advapi32.lib
975 LIBDIR = -LIBPATH:$(ZLIBDIR)
976
977 !ifdef FOSSIL_ENABLE_JSON
978 TCC = $(TCC) -DFOSSIL_ENABLE_JSON=1
979
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -968,11 +968,11 @@
968 !endif
969
970 CFLAGS = -nologo -MT -O2
971 BCC = $(CC) $(CFLAGS)
972 TCC = $(CC) -c $(CFLAGS) $(MSCDEF) $(INCL)
973 RCC = rc $(CFLAGS) $(MSCDEF) $(INCL)
974 LIBS = $(ZLIB) ws2_32.lib advapi32.lib
975 LIBDIR = -LIBPATH:$(ZLIBDIR)
976
977 !ifdef FOSSIL_ENABLE_JSON
978 TCC = $(TCC) -DFOSSIL_ENABLE_JSON=1
979
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -38,11 +38,11 @@
3838
!endif
3939
4040
CFLAGS = -nologo -MT -O2
4141
BCC = $(CC) $(CFLAGS)
4242
TCC = $(CC) -c $(CFLAGS) $(MSCDEF) $(INCL)
43
-RCC = rc -D_WIN32 -D_MSC_VER $(INCL)
43
+RCC = rc $(CFLAGS) $(MSCDEF) $(INCL)
4444
LIBS = $(ZLIB) ws2_32.lib advapi32.lib
4545
LIBDIR = -LIBPATH:$(ZLIBDIR)
4646
4747
!ifdef FOSSIL_ENABLE_JSON
4848
TCC = $(TCC) -DFOSSIL_ENABLE_JSON=1
4949
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -38,11 +38,11 @@
38 !endif
39
40 CFLAGS = -nologo -MT -O2
41 BCC = $(CC) $(CFLAGS)
42 TCC = $(CC) -c $(CFLAGS) $(MSCDEF) $(INCL)
43 RCC = rc -D_WIN32 -D_MSC_VER $(INCL)
44 LIBS = $(ZLIB) ws2_32.lib advapi32.lib
45 LIBDIR = -LIBPATH:$(ZLIBDIR)
46
47 !ifdef FOSSIL_ENABLE_JSON
48 TCC = $(TCC) -DFOSSIL_ENABLE_JSON=1
49
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -38,11 +38,11 @@
38 !endif
39
40 CFLAGS = -nologo -MT -O2
41 BCC = $(CC) $(CFLAGS)
42 TCC = $(CC) -c $(CFLAGS) $(MSCDEF) $(INCL)
43 RCC = rc $(CFLAGS) $(MSCDEF) $(INCL)
44 LIBS = $(ZLIB) ws2_32.lib advapi32.lib
45 LIBDIR = -LIBPATH:$(ZLIBDIR)
46
47 !ifdef FOSSIL_ENABLE_JSON
48 TCC = $(TCC) -DFOSSIL_ENABLE_JSON=1
49
--- win/include/dirent.h
+++ win/include/dirent.h
@@ -90,13 +90,17 @@
9090
* First version.
9191
*****************************************************************************/
9292
#ifndef DIRENT_H
9393
#define DIRENT_H
9494
95
-#if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_IX86)
95
+#if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && !defined(_ARM_) && defined(_M_IX86)
9696
# define _X86_
9797
#endif
98
+#if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && !defined(_ARM_) && defined(_M_AMD64)
99
+#define _AMD64_
100
+#endif
101
+
98102
#include <stdio.h>
99103
#include <stdarg.h>
100104
#include <windef.h>
101105
#include <winbase.h>
102106
#include <wchar.h>
103107
--- win/include/dirent.h
+++ win/include/dirent.h
@@ -90,13 +90,17 @@
90 * First version.
91 *****************************************************************************/
92 #ifndef DIRENT_H
93 #define DIRENT_H
94
95 #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_IX86)
96 # define _X86_
97 #endif
 
 
 
 
98 #include <stdio.h>
99 #include <stdarg.h>
100 #include <windef.h>
101 #include <winbase.h>
102 #include <wchar.h>
103
--- win/include/dirent.h
+++ win/include/dirent.h
@@ -90,13 +90,17 @@
90 * First version.
91 *****************************************************************************/
92 #ifndef DIRENT_H
93 #define DIRENT_H
94
95 #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && !defined(_ARM_) && defined(_M_IX86)
96 # define _X86_
97 #endif
98 #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && !defined(_ARM_) && defined(_M_AMD64)
99 #define _AMD64_
100 #endif
101
102 #include <stdio.h>
103 #include <stdarg.h>
104 #include <windef.h>
105 #include <winbase.h>
106 #include <wchar.h>
107

Keyboard Shortcuts

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