diff options
| author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-08-09 13:27:45 +0200 |
|---|---|---|
| committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-08-09 13:27:45 +0200 |
| commit | 975e28a00024150190e792c66ef72a91da268f2a (patch) | |
| tree | 7484d63f8b45810b376ff7a51d729ce16d9e1409 /RtAudio.cpp | |
| parent | 5c442239939aaefc532a548452c74dc7d946d2a3 (diff) | |
make some data extern C and const
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index c15f9be..7200d1e 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -118,7 +118,7 @@ const unsigned int rtaudio_num_api_names = // The order here will control the order of RtAudio's API search in // the constructor. -RtAudio::Api rtaudio_compiled_apis[] = { +extern "C" const RtAudio::Api rtaudio_compiled_apis[] = { #if defined(__UNIX_JACK__) RtAudio::UNIX_JACK, #endif @@ -148,7 +148,7 @@ RtAudio::Api rtaudio_compiled_apis[] = { #endif RtAudio::UNSPECIFIED, }; -const unsigned int rtaudio_num_compiled_apis = +extern "C" const unsigned int rtaudio_num_compiled_apis = sizeof(rtaudio_compiled_apis)/sizeof(rtaudio_compiled_apis[0])-1; } |
