Skip to content

Commit a178d12

Browse files
committed
Attempt to fix MSYS2 compile
1 parent 4336181 commit a178d12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

thirdparty/loguru/loguru.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,10 @@ namespace loguru
801801
const char* mode_str = (mode == FileMode::Truncate ? "w" : "a");
802802
FILE* file;
803803
#ifdef _WIN32
804+
#ifndef _SH_DENYNO
805+
#define _SH_DENYNO 0x40
806+
#endif // !_SH_DENYNO
807+
804808
file = _fsopen(path, mode_str, _SH_DENYNO);
805809
#else
806810
file = fopen(path, mode_str);

0 commit comments

Comments
 (0)