Shift the job of defining NOMINMAX into source rather than the build system
authorChristopher Dykes <cdykes@fb.com>
Mon, 22 May 2017 22:19:00 +0000 (15:19 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 22 May 2017 22:20:02 +0000 (15:20 -0700)
commit887367cae9e579cd1b715265a4f1b089beda71da
tree51eb8d3fc9d119e90d0b8d2029953fc0bc88dded
parentc32f067bded198c6e907ee31ed76d83baa856a8e
Shift the job of defining NOMINMAX into source rather than the build system

Summary:
This makes it easier to consume Folly from a non-cmake project.
Note that this also requires making libevent, which was previously categorized as a semi-portable header into a non-portable header, meaning it can't be referenced directly. (libevent includes `Windows.h` in one of its headers -_-....)

Reviewed By: yfeldblum

Differential Revision: D5106051

fbshipit-source-id: 5ce2d4188c9036d6ab206af3036c8fd4b09516a4
CMake/FollyCompiler.cmake
folly/io/async/AsyncSignalHandler.h
folly/io/async/AsyncTimeout.h
folly/io/async/EventBase.h
folly/io/async/EventUtil.h
folly/portability/Event.h
folly/portability/Windows.h