summaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorSven Strickroth <sven@cs-ware.de>2016-03-30 13:37:36 +0200
committerJunio C Hamano <gitster@pobox.com>2016-03-30 11:16:20 -0700
commit0ef60afdd4416345b16b5c4d8d0558a08d680bc5 (patch)
treea6447b153cc7c6e53a164cd2ec6188b73fd30ee6 /compat/mingw.h
parentdae26d30f4dfff352fb401e5a24c2df1a0a339f0 (diff)
downloadgit-0ef60afdd4416345b16b5c4d8d0558a08d680bc5.tar.gz
MSVC: use shipped headers instead of fallback definitionsss/msvc
VS2010 comes with stdint.h [1] VS2013 comes with inttypes.h [2] [1] https://stackoverflow.com/a/2628014/3906760 [2] https://blogs.msdn.microsoft.com/vcblog/2013/07/19/c99-library-support-in-visual-studio-2013/ Signed-off-by: Sven Strickroth <sven@cs-ware.de> Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Acked-by: Sebastian Schuberth <sschuberth@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index c008694639..1de70ffd62 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -406,7 +406,7 @@ static inline void convert_slashes(char *path)
int mingw_offset_1st_component(const char *path);
#define offset_1st_component mingw_offset_1st_component
#define PATH_SEP ';'
-#ifndef __MINGW64_VERSION_MAJOR
+#if !defined(__MINGW64_VERSION_MAJOR) && (!defined(_MSC_VER) || _MSC_VER < 1800)
#define PRIuMAX "I64u"
#define PRId64 "I64d"
#else