File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,12 @@ uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not')
212
212
uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not')
213
213
uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not')
214
214
215
+ ifdef MSVC
216
+ # avoid the MingW and Cygwin configuration sections
217
+ uname_S := Windows
218
+ uname_O := Windows
219
+ endif
220
+
215
221
# CFLAGS and LDFLAGS are for the users to override from the command line.
216
222
217
223
CFLAGS = -g -O2 -Wall
@@ -893,7 +899,7 @@ ifeq ($(uname_S),HP-UX)
893
899
NO_SYS_SELECT_H = YesPlease
894
900
SNPRINTF_RETURNS_BOGUS = YesPlease
895
901
endif
896
- ifdef MSVC
902
+ ifeq ( $( uname_S ) ,Windows)
897
903
GIT_VERSION := $(GIT_VERSION).MSVC
898
904
pathsep = ;
899
905
NO_PREAD = YesPlease
945
951
BASIC_CFLAGS += -Zi -MTd
946
952
endif
947
953
X = .exe
948
- else
954
+ endif
949
955
ifneq (,$(findstring MINGW,$(uname_S ) ) )
950
956
pathsep = ;
951
957
NO_PREAD = YesPlease
@@ -994,7 +1000,6 @@ else
994
1000
NO_PTHREADS = YesPlease
995
1001
endif
996
1002
endif
997
- endif
998
1003
999
1004
-include config.mak.autogen
1000
1005
-include config.mak
You can’t perform that action at this time.
0 commit comments