From a57f70eda32e99221de56f5499079b4f00dc2bc5 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 30 May 2021 20:40:35 +0200 Subject: Include config.h via command line instead of via system.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes the definitions in config.h available to all source code, including third_party_lib. It’s also a first step towards not having to include system.hpp and its libc headers from all files. --- cmake/config.h.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmake/config.h.in') diff --git a/cmake/config.h.in b/cmake/config.h.in index d10e1641..fe99e16d 100644 --- a/cmake/config.h.in +++ b/cmake/config.h.in @@ -6,6 +6,11 @@ # endif #endif +#ifdef __MINGW32__ +# define __USE_MINGW_ANSI_STDIO 1 +# define __STDC_FORMAT_MACROS 1 +#endif + // For example for vasprintf under i686-w64-mingw32-g++-posix. The later // definition of _XOPEN_SOURCE disables certain features on Linux, so we need // _GNU_SOURCE to re-enable them (makedev, tm_zone). -- cgit v1.2.1