Skip to content

Commit

Permalink
fix: guard macro declaration to prevent redefinition warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-p committed Dec 6, 2023
1 parent 239bac9 commit f47875d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 3rdparty/minitrace/minitrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

#ifdef _WIN32
#pragma warning (disable:4996)
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#define __thread __declspec(thread)
#define pthread_mutex_t CRITICAL_SECTION
Expand Down

0 comments on commit f47875d

Please sign in to comment.