From: Johannes Schindelin Date: Mon, 30 Jul 2018 15:42:51 +0000 (-0700) Subject: mingw: define WIN32 explicitly X-Git-Tag: v2.19.0-rc0~66^2~5 X-Git-Url: http://git.bitbasher.net/?a=commitdiff_plain;h=b4d991d1a2e2f5da6d3f08d82d1fa9ef45605e07;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/config.mak.uname b/config.mak.uname index 684fc5bf02..2be2f19811 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -528,7 +528,7 @@ ifneq (,$(findstring MINGW,$(uname_S))) COMPAT_OBJS += compat/mingw.o compat/winansi.o \ compat/win32/pthread.o compat/win32/syslog.o \ compat/win32/dirent.o - BASIC_CFLAGS += -DPROTECT_NTFS_DEFAULT=1 + BASIC_CFLAGS += -DWIN32 -DPROTECT_NTFS_DEFAULT=1 EXTLIBS += -lws2_32 GITLIBS += git.res PTHREAD_LIBS =