aboutsummaryrefslogtreecommitdiff
path: root/utils/adlmidi-2/input.hpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2021-01-07 13:50:36 +0300
committerWohlstand <admin@wohlnet.ru>2021-01-07 13:50:36 +0300
commite9e0f4f45e8add289d7dbcca2d5602c48a4c6a22 (patch)
tree68a6b6bbd61ce60e5c8a2991dfbe69f9e9561bdf /utils/adlmidi-2/input.hpp
parent81d2fe6d0dcc8051b12efeef5522e54484639712 (diff)
downloadlibADLMIDI-e9e0f4f45e8add289d7dbcca2d5602c48a4c6a22.tar.gz
libADLMIDI-e9e0f4f45e8add289d7dbcca2d5602c48a4c6a22.tar.bz2
libADLMIDI-e9e0f4f45e8add289d7dbcca2d5602c48a4c6a22.zip
adlmidi2: Tune the build
Diffstat (limited to 'utils/adlmidi-2/input.hpp')
-rw-r--r--utils/adlmidi-2/input.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/adlmidi-2/input.hpp b/utils/adlmidi-2/input.hpp
index 6d0a796..a1e5854 100644
--- a/utils/adlmidi-2/input.hpp
+++ b/utils/adlmidi-2/input.hpp
@@ -29,6 +29,9 @@ static const unsigned NewTimerFreq = 209;
# include <csignal>
#endif
+#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__) && !defined(__APPLE__)
+#define USE_TERMIO
+
#if defined(HAS_TERMIO)
typedef struct termio InputTermio_t;
#elif defined(HAS_TERMIOS)
@@ -37,12 +40,14 @@ typedef struct termios InputTermio_t;
# error Undefined type for termio;
#endif
+#endif // USE_TERMIO
+
class xInput
{
#ifdef _WIN32
void *inhandle;
#endif
-#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__) && !defined(__APPLE__)
+#ifdef USE_TERMIO
InputTermio_t back;
#endif