diff options
author | Tamar Christina <tamar@zhox.com> | 2019-06-16 21:53:53 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-07-15 16:41:01 -0400 |
commit | ceed994acd07259ef3a780ab440185dbb26fff09 (patch) | |
tree | 19ca36bf7231a547253122644ed18b765b1d32c0 /libraries/base/base.cabal | |
parent | 0e3c277a6c82c5ab529771c1c493d86e7eda0a98 (diff) | |
download | haskell-ceed994acd07259ef3a780ab440185dbb26fff09.tar.gz |
winio: Drop Windows Vista support, require Windows 7
Diffstat (limited to 'libraries/base/base.cabal')
-rw-r--r-- | libraries/base/base.cabal | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libraries/base/base.cabal b/libraries/base/base.cabal index 33eccf214f..841b5d251b 100644 --- a/libraries/base/base.cabal +++ b/libraries/base/base.cabal @@ -363,7 +363,17 @@ Library -- mingwex and mingw32. the __math_err symbol is defined in -- mingw32 which is required by mingwex. -- shlwapi: provides PathFileExistsW - extra-libraries: wsock32, user32, shell32, msvcrt, mingw32, mingwex, shlwapi + -- ws2_32: provides access to socket types and functions + extra-libraries: wsock32, user32, shell32, msvcrt, mingw32, + mingwex, ws2_32, shlwapi + -- Minimum supported Windows version. + -- These numbers can be found at: + -- https://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx + -- If we're compiling on windows, enforce that we only support Windows 7+ + -- Adding this here means it doesn't have to be done in individual .c files + -- and also centralizes the versioning. + cpp-options: -D_WIN32_WINNT=0x06010000 + cc-options: -D_WIN32_WINNT=0x06010000 exposed-modules: GHC.IO.Encoding.CodePage.API GHC.IO.Encoding.CodePage.Table |