Skip to content

Commit 42776e0

Browse files
committed
More Windows build fixes
Signed-off-by: Gary Oberbrunner <[email protected]>
1 parent 8aaf9d2 commit 42776e0

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Examples/Custom/custom.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
crafted piece of image processing software.
99
*/
1010

11-
#ifdef WIN32
11+
#ifdef _WIN32
12+
#define NOMINMAX
1213
#include <windows.h>
1314
#endif
1415

@@ -71,7 +72,7 @@ parseCustomParam(char *str, double &x, double &y)
7172
void
7273
writeCustomParam(char *str, int strlen, double x, double y)
7374
{
74-
#ifdef WIN32
75+
#ifdef _WIN32
7576
_snprintf(str, strlen, "%lg %lg", x, y);
7677
#else
7778
snprintf(str, strlen, "%lg %lg", x, y);

Examples/DrawSuite/drawsuite.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
and so do nothing.
1313
*/
1414

15-
#ifdef WIN32
15+
#ifdef _WIN32
16+
#define NOMINMAX
1617
#include <windows.h>
1718
#endif
1819

Examples/Overlay/overlay.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
and so do nothing.
1313
*/
1414

15-
#ifdef WIN32
15+
#ifdef _WIN32
16+
#define NOMINMAX
1617
#include <windows.h>
1718
#endif
1819

0 commit comments

Comments
 (0)