diff options
author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2015-02-03 13:31:33 +0000 |
---|---|---|
committer | Seth Jackson <sethjackson@gmail.com> | 2016-01-04 19:51:09 -0500 |
commit | bd529ea3f3f96dfc27e3f0f771bbfe550e4e1f5c (patch) | |
tree | 2d978391c83eac0915bde004ae3b8709eb375bd1 | |
parent | 074d3dc1f365f79e91785d02b2a9756af7a94e23 (diff) | |
download | rneovim-bd529ea3f3f96dfc27e3f0f771bbfe550e4e1f5c.tar.gz rneovim-bd529ea3f3f96dfc27e3f0f771bbfe550e4e1f5c.tar.bz2 rneovim-bd529ea3f3f96dfc27e3f0f771bbfe550e4e1f5c.zip |
MinGW: libuv needs -D_WIN32_WINNT=0x0600
Without this compilation fails due to a missing symbol: SRWLOCK in libuv
headers. _WIN32_WINNT defines the Windows header version that is to be used,
and it seems libuv requires this version. See
https://github.com/joyent/libuv/commit/b471b33da88da0ca0b913573370cc6919ec134e7
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 43f283d8f7..29ef806612 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -197,6 +197,7 @@ endif() if(MINGW) # Use POSIX compatible stdio in Mingw add_definitions(-D__USE_MINGW_ANSI_STDIO) + add_definitions(-D_WIN32_WINNT=0x0600) endif() # OpenBSD's GCC (4.2.1) doesn't have -Wvla |