Changeset 253
- Timestamp:
- Feb 6, 2011, 11:21:47 PM (15 years ago)
- Location:
- trunk/openjdk/jdk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/jdk/src/share/native/com/sun/media/sound/PlatformMidi.h
r2 r253 115 115 #if USE_MIDI_QUEUE == TRUE 116 116 117 #ifdef __cplusplus 118 extern "C" { 119 #endif 120 117 121 /* 118 122 * Native Locking support … … 142 146 void MIDI_QueueClear(MidiMessageQueue* queue); 143 147 148 #ifdef __cplusplus 149 } /* extern "C" */ 150 #endif 151 144 152 #endif /* USE_MIDI_QUEUE */ 145 153 … … 160 168 #define MIDI_IN_LONG_MESSAGE_SIZE 1024 161 169 170 #ifdef __cplusplus 171 extern "C" { 172 #endif 162 173 163 174 /* … … 165 176 */ 166 177 char* MIDI_IN_GetErrorStr(INT32 err); 167 168 178 169 179 /* … … 243 253 void MIDI_IN_ReleaseMessage(MidiDeviceHandle* handle, MidiMessage* msg); 244 254 255 #ifdef __cplusplus 256 } /* extern "C" */ 257 #endif 258 245 259 #endif // USE_PLATFORM_MIDI_IN 246 260 … … 261 275 #define MIDI_OUT_LONG_MESSAGE_SIZE 1024 262 276 277 #ifdef __cplusplus 278 extern "C" { 279 #endif 280 263 281 /* 264 282 * Return an error message for the error code 265 283 */ 266 284 char* MIDI_OUT_GetErrorStr(INT32 err); 267 268 285 269 286 /* … … 331 348 INT32 MIDI_OUT_SendLongMessage(MidiDeviceHandle* handle, UBYTE* data, UINT32 size, UINT32 timestamp); 332 349 350 #ifdef __cplusplus 351 } /* extern "C" */ 352 #endif 353 333 354 #endif // USE_PLATFORM_MIDI_OUT 334 355 -
trunk/openjdk/jdk/src/share/native/com/sun/media/sound/Utilities.h
r2 r253 27 27 #include "SoundDefs.h" 28 28 #include "Configure.h" // put flags for debug msgs etc. here 29 30 // return 1 if this platform is big endian, or 0 for little endian31 int UTIL_IsBigEndianPlatform();32 33 29 34 30 // ERROR PRINTS … … 81 77 #endif 82 78 79 #ifdef __cplusplus 80 extern "C" { 81 #endif 82 83 // return 1 if this platform is big endian, or 0 for little endian 84 int UTIL_IsBigEndianPlatform(); 83 85 84 86 void ThrowJavaMessageException(JNIEnv *e, const char *exClass, const char *msg); 87 88 #ifdef __cplusplus 89 } /* extern "C" */ 90 #endif 91 -
trunk/openjdk/jdk/src/windows/native/com/sun/media/sound/PLATFORM_API_WinOS_MidiIn.cpp
r2 r253 28 28 29 29 /* include Java Sound specific headers as C code */ 30 extern "C" {31 30 #include "PLATFORM_API_WinOS_Util.h" 32 }33 31 34 32 #if USE_PLATFORM_MIDI_IN == TRUE -
trunk/openjdk/jdk/src/windows/native/com/sun/media/sound/PLATFORM_API_WinOS_Util.h
r2 r253 55 55 } SysExQueue; 56 56 57 58 #ifdef __cplusplus 59 extern "C" { 60 #endif 61 57 62 /* set the startTime field in MidiDeviceHandle */ 58 63 void MIDI_SetStartTime(MidiDeviceHandle* handle); … … 66 71 void MIDI_WinDestroyLongBufferQueue(MidiDeviceHandle* handle); 67 72 73 #ifdef __cplusplus 74 } /* extern "C" */ 75 #endif 76 68 77 #endif // USE_PLATFORM_MIDI_IN || USE_PLATFORM_MIDI_OUT 69 78
Note:
See TracChangeset
for help on using the changeset viewer.