Skip to content

Commit b41cda4

Browse files
Merged. Thanks for the contribution 👍
Win: Only define NOMINMAX if it's not already defined
2 parents d9af787 + 8b47034 commit b41cda4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/StormPort.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@
5454
#include <stdio.h>
5555

5656
// Suppress definitions of `min` and `max` macros by <windows.h>:
57+
#ifndef NOMINMAX
5758
#define NOMINMAX 1
59+
#endif
5860
#include <windows.h>
5961
#include <wininet.h>
6062

0 commit comments

Comments
 (0)