Skip to content

Commit 447c6f3

Browse files
committed
Add missing header file
Signed-off-by: Stefan Widgren <[email protected]>
1 parent 5cabcb0 commit 447c6f3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (C) the libgit2 contributors. All rights reserved.
3+
*
4+
* This file is part of libgit2, distributed under the GNU GPL v2 with
5+
* a Linking Exception. For full terms see the included COPYING file.
6+
*/
7+
#ifndef INCLUDE_mingw_compat__
8+
#define INCLUDE_mingw_compat__
9+
10+
#if defined(__MINGW32__)
11+
12+
#undef stat
13+
14+
#if _WIN32_WINNT < 0x0600 && !defined(__MINGW64_VERSION_MAJOR)
15+
#undef MemoryBarrier
16+
void __mingworg_MemoryBarrier(void);
17+
#define MemoryBarrier __mingworg_MemoryBarrier
18+
#define VOLUME_NAME_DOS 0x0
19+
#endif
20+
21+
#endif
22+
23+
#endif /* INCLUDE_mingw_compat__ */

0 commit comments

Comments
 (0)