Skip to content

Commit

Permalink
NOMINMAX can be defined already on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
VA-GS committed Oct 3, 2024
1 parent c868d55 commit c8f3e92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/yojimbo_address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@

#if YOJIMBO_PLATFORM == YOJIMBO_PLATFORM_WINDOWS

#ifndef NOMINMAX
#define NOMINMAX
#endif
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include <winsock2.h>
#include <ws2tcpip.h>
Expand Down
2 changes: 2 additions & 0 deletions source/yojimbo_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ double yojimbo_time()
// Windows
// ===============================

#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>

void yojimbo_sleep( double time )
Expand Down

0 comments on commit c8f3e92

Please sign in to comment.