summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Kelman <tony@kelman.net>2015-03-05 19:42:54 -0800
committerTony Kelman <tony@kelman.net>2015-03-06 12:07:05 -0800
commit04c5a9c0838a9c44b55afb427169318ec4a44ec2 (patch)
treeb0f66a263a0bd028bfe035310e536849dbe226f0
parent1a7ea63d228d42dc0ec1bed3a295d3dfe9392d74 (diff)
downloadlibgit2-04c5a9c0838a9c44b55afb427169318ec4a44ec2.tar.gz
Add some missing definitions for mingw.org
these shouldn't be necessary if _WIN32_WINNT >= _WIN32_WINNT_VISTA
-rw-r--r--src/win32/mingw-compat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/win32/mingw-compat.h b/src/win32/mingw-compat.h
index feedfecf4..a4a5a31c7 100644
--- a/src/win32/mingw-compat.h
+++ b/src/win32/mingw-compat.h
@@ -17,6 +17,13 @@
#define stat _stati64
#endif
+#if _WIN32_WINNT < 0x0600 && !defined(__MINGW64_VERSION_MAJOR)
+#undef MemoryBarrier
+void __mingworg_MemoryBarrier(void);
+#define MemoryBarrier __mingworg_MemoryBarrier
+#define VOLUME_NAME_DOS 0x0
+#endif
+
#endif
#endif /* INCLUDE_mingw_compat__ */