diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-21 06:00:23 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-21 06:00:23 +0300 |
commit | 34f55ea7bad2f177d1a50708f7c269d90d9aa2f0 (patch) | |
tree | 9e0b1694332a2124ac08464ffbbdc269bc70fac3 | |
parent | cca01359c3f7acc5cfd016d59561fae41b72793e (diff) | |
download | libADLMIDI-34f55ea7bad2f177d1a50708f7c269d90d9aa2f0.tar.gz libADLMIDI-34f55ea7bad2f177d1a50708f7c269d90d9aa2f0.tar.bz2 libADLMIDI-34f55ea7bad2f177d1a50708f7c269d90d9aa2f0.zip |
Fix MSVC build because of missing `ssize_t` typedef
-rw-r--r-- | src/midi_sequencer_impl.hpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/midi_sequencer_impl.hpp b/src/midi_sequencer_impl.hpp index 8c0e3dd..6f62e0b 100644 --- a/src/midi_sequencer_impl.hpp +++ b/src/midi_sequencer_impl.hpp @@ -27,9 +27,24 @@ #include <memory> #include <cstring> #include <set> - #include <assert.h> +#if defined(_WIN32) && !defined(__WATCOMC__) +# ifdef _MSC_VER +# ifdef _WIN64 +typedef __int64 ssize_t; +# else +typedef __int32 ssize_t; +# endif +# else +# ifdef _WIN64 +typedef int64_t ssize_t; +# else +typedef int32_t ssize_t; +# endif +# endif +#endif + #ifndef BWMIDI_DISABLE_MUS_SUPPORT #include "cvt_mus2mid.hpp" #endif//MUS |