Skip to content

Commit f47875d

Browse files
committedDec 6, 2023
fix: guard macro declaration to prevent redefinition warning
1 parent 239bac9 commit f47875d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎3rdparty/minitrace/minitrace.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
#ifdef _WIN32
1414
#pragma warning (disable:4996)
15+
#ifndef WIN32_LEAN_AND_MEAN
1516
#define WIN32_LEAN_AND_MEAN
17+
#endif
1618
#include <windows.h>
1719
#define __thread __declspec(thread)
1820
#define pthread_mutex_t CRITICAL_SECTION

0 commit comments

Comments
 (0)
Please sign in to comment.