aboutsummaryrefslogtreecommitdiff
path: root/src/dbopl.h
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-11-18 16:54:27 +0300
committerWohlstand <admin@wohlnet.ru>2017-11-18 16:54:27 +0300
commit1ebfef778e67329d221d82eb11592a50b0b49b6a (patch)
tree6d5e80647c62a649d9f2260dadd6bed379bb4f89 /src/dbopl.h
parent336443c5565ae6846e156ec12ca95cab262da941 (diff)
downloadlibADLMIDI-1ebfef778e67329d221d82eb11592a50b0b49b6a.tar.gz
libADLMIDI-1ebfef778e67329d221d82eb11592a50b0b49b6a.tar.bz2
libADLMIDI-1ebfef778e67329d221d82eb11592a50b0b49b6a.zip
Fix compilation on MinGW-w64 when using a DosBox emulator
(Help to solve #32)
Diffstat (limited to 'src/dbopl.h')
-rw-r--r--src/dbopl.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/dbopl.h b/src/dbopl.h
index 826cb44..e51a7a3 100644
--- a/src/dbopl.h
+++ b/src/dbopl.h
@@ -48,12 +48,20 @@ typedef signed char Bit8s;
//Select the type of wave generator routine
#define DBOPL_WAVE WAVE_TABLEMUL
-#ifdef _MSC_VER
-#ifdef _WIN64
+#ifdef _WIN32
+# ifdef _MSC_VER
+# ifdef _WIN64
typedef __int64 ssize_t;
-#else
+# else
typedef __int32 ssize_t;
-#endif
+# endif
+# elif !defined(__MINGW32__)
+# ifdef _WIN64
+typedef int64_t ssize_t;
+# else
+typedef int32_t ssize_t;
+# endif
+# endif
#endif
namespace DBOPL