We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cabcb0 commit 447c6f3Copy full SHA for 447c6f3
src/libgit2/src/win32/mingw-compat.h
@@ -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
22
23
+#endif /* INCLUDE_mingw_compat__ */
0 commit comments