mingw: define WIN32 explicitly

This helps VS Code's intellisense to figure out that we want to include windows.h, and that we want to define the minimum target Windows version as Windows Vista/2008R2. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jul 30, 2018 at 08:42 UTC b4d991d1a2e2f5da6d3f08d82d1fa9ef45605e07
1 file changed +1 -1
config.mak.uname
+1 -1
@@ -528,7 +528,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
528 COMPAT_OBJS += compat/mingw.o compat/winansi.o \
529 compat/win32/pthread.o compat/win32/syslog.o \
530 compat/win32/dirent.o
531 - BASIC_CFLAGS += -DPROTECT_NTFS_DEFAULT=1
531 + BASIC_CFLAGS += -DWIN32 -DPROTECT_NTFS_DEFAULT=1
532 EXTLIBS += -lws2_32
533 GITLIBS += git.res
534 PTHREAD_LIBS =