Skip to content

Commit

Permalink
Merge pull request #210 from VA-GS/main
Browse files Browse the repository at this point in the history
NOMINMAX can be defined already on Windows
  • Loading branch information
gafferongames authored Oct 7, 2024
2 parents c889a85 + c8f3e92 commit a163cf2
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 a163cf2

Please sign in to comment.