diff options
author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2014-07-03 14:32:09 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-08-25 19:13:23 -0400 |
commit | fc7055f6e951ab0973f121a13a87c4438a799c5c (patch) | |
tree | e9b876c2ac51bd2a936985365e0c51c0c8e7f52f | |
parent | 6cf2925f6303135e6e77ac3ede2327947d0b2da9 (diff) | |
download | rneovim-fc7055f6e951ab0973f121a13a87c4438a799c5c.tar.gz rneovim-fc7055f6e951ab0973f121a13a87c4438a799c5c.tar.bz2 rneovim-fc7055f6e951ab0973f121a13a87c4438a799c5c.zip |
Mingw: Use POSIX compatible stdio #3232
- There are some differences between stdio (*printf) functions in POSIX
and the MS runtime, this commit enables Mingw compatibility for these
functions
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 700bfdf7cf..b2e19c6d6f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,6 +112,10 @@ endif() add_definitions(-Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99) +if (MINGW) + # Use POSIX compatible stdio in Mingw + add_definitions(-D__USE_MINGW_ANSI_STDIO) +endif() option( TRAVIS_CI_BUILD "Travis CI build. Extra compilation flags will be set." OFF) |