mirror of https://git.wownero.com/dsc/mxe.git
22 lines
719 B
Diff
22 lines
719 B
Diff
This file is part of MXE. See LICENSE.md for licensing information.
|
|
|
|
This patch has been taken from https://github.com/stcorp/coda/pull/9
|
|
|
|
diff --git a/libcoda/coda.h.in b/libcoda/coda.h.in
|
|
index 1587c61..b7dce21 100644
|
|
--- a/libcoda/coda.h.in
|
|
+++ b/libcoda/coda.h.in
|
|
@@ -33,9 +33,9 @@ extern "C"
|
|
#ifdef WIN32
|
|
#include <windows.h>
|
|
|
|
-#if (_MSC_VER < 1600)
|
|
-/* For Visual Studio we can use stdint.h as of Visual Studio 2010
|
|
- * For earlier versions we need to provide our own defines
|
|
+#if (_MSC_VER < 1600) && !defined(__MINGW32__)
|
|
+/* For Visual Studio > 2010 and MinGW we can use stdint.h
|
|
+ * For earlier versions of Visual Studio we need to provide our own defines
|
|
*/
|
|
#ifndef int8_t
|
|
#define int8_t signed char
|