From fef6f363f1793f78f0783bd7352317f72393b2c6 Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Mon, 7 Mar 2022 12:49:03 -0500 Subject: [PATCH] ThirdParty: FatFs: Use standard C++ for MSVC 2017+ This prevents unicode issues with TCHAR, because we don't want to import windows.h. --- third-party/fatfs/source/ff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/fatfs/source/ff.h b/third-party/fatfs/source/ff.h index 64bf79d..f94e5ab 100644 --- a/third-party/fatfs/source/ff.h +++ b/third-party/fatfs/source/ff.h @@ -35,7 +35,7 @@ extern "C" { /* Integer types used for FatFs API */ -#if defined(_WIN32) /* Windows VC++ (for development only) */ +#if defined(_WIN32) && defined(_MSC_VER) && _MSC_VER < 1910 /* Windows VC++ 2015 and below (for development only) */ #define FF_INTDEF 2 #include typedef unsigned __int64 QWORD;