Prevent redefinition of NOMINMAX

While this protection is not strictly necessary here, if someone
does a cut-and-paste into a header file it should be included.
This commit is contained in:
Andrew Johnson
2016-04-06 15:22:11 -05:00
parent 0ad8ece840
commit 9a8644033d
4 changed files with 5 additions and 4 deletions

View File

@@ -3,7 +3,8 @@
* pvAccessCPP is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
*/
#ifdef _WIN32
#if defined(_WIN32) && !defined(NOMINMAX)
#define NOMINMAX
#endif