Skip to content

Commit 98b806d

Browse files
committed
FIX: update MIDI device code to use the new option's configuration
1 parent 8c16d5b commit 98b806d

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

src/os/posix/dev-midi-osx.c

+11-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,17 @@
3636
** 5. Test everything, then test it again.
3737
**
3838
***********************************************************************/
39-
#ifdef USE_MIDI_DEVICE
39+
40+
//* Options ************************************************************
41+
42+
#if !defined(REBOL_OPTIONS_FILE)
43+
#include "opt-config.h"
44+
#else
45+
#include REBOL_OPTIONS_FILE
46+
#endif
47+
48+
#ifdef INCLUDE_MIDI_DEVICE
49+
4050
#if defined(TO_OSX) || defined(TO_OSX_X64) || defined(TO_OSXI) //!!! could be made better!
4151

4252
// NOTE: this will be useful for higher level launchpad schemes:

src/os/win32/dev-midi.c

+10-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,16 @@
3636
** 5. Test everything, then test it again.
3737
**
3838
***********************************************************************/
39-
#ifdef USE_MIDI_DEVICE
39+
40+
//* Options ************************************************************
41+
42+
#if !defined(REBOL_OPTIONS_FILE)
43+
#include "opt-config.h"
44+
#else
45+
#include REBOL_OPTIONS_FILE
46+
#endif
47+
48+
#ifdef INCLUDE_MIDI_DEVICE
4049

4150
// NOTE: this will be useful for higher level launchpad schemes:
4251
// https://github.com/FMMT666/launchpad.py/blob/master/launchpad_py/launchpad.py

0 commit comments

Comments
 (0)