summaryrefslogtreecommitdiff
path: root/config.mak.uname
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-07-30 15:42:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-30 20:14:39 (GMT)
commitb4d991d1a2e2f5da6d3f08d82d1fa9ef45605e07 (patch)
tree245b456268e0d6ea0b487e8858e0fd980bb55c00 /config.mak.uname
parent58930fdb195d55d25d84c7d6ba2e2976d78a423d (diff)
downloadgit-b4d991d1a2e2f5da6d3f08d82d1fa9ef45605e07.zip
git-b4d991d1a2e2f5da6d3f08d82d1fa9ef45605e07.tar.gz
git-b4d991d1a2e2f5da6d3f08d82d1fa9ef45605e07.tar.bz2
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>
Diffstat (limited to 'config.mak.uname')
-rw-r--r--config.mak.uname2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.mak.uname b/config.mak.uname
index 684fc5b..2be2f19 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 =