Changeset 253


Ignore:
Timestamp:
Feb 6, 2011, 11:21:47 PM (15 years ago)
Author:
dmik
Message:

jdk/jsound: Using extern "C" around headers is plain wrong.

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  
    115115#if USE_MIDI_QUEUE == TRUE
    116116
     117#ifdef __cplusplus
     118extern "C" {
     119#endif
     120
    117121/*
    118122 * Native Locking support
     
    142146void MIDI_QueueClear(MidiMessageQueue* queue);
    143147
     148#ifdef __cplusplus
     149} /* extern "C" */
     150#endif
     151
    144152#endif /* USE_MIDI_QUEUE */
    145153
     
    160168#define MIDI_IN_LONG_MESSAGE_SIZE 1024
    161169
     170#ifdef __cplusplus
     171extern "C" {
     172#endif
    162173
    163174/*
     
    165176 */
    166177char* MIDI_IN_GetErrorStr(INT32 err);
    167 
    168178
    169179/*
     
    243253void MIDI_IN_ReleaseMessage(MidiDeviceHandle* handle, MidiMessage* msg);
    244254
     255#ifdef __cplusplus
     256} /* extern "C" */
     257#endif
     258
    245259#endif // USE_PLATFORM_MIDI_IN
    246260
     
    261275#define MIDI_OUT_LONG_MESSAGE_SIZE 1024
    262276
     277#ifdef __cplusplus
     278extern "C" {
     279#endif
     280
    263281/*
    264282 * Return an error message for the error code
    265283 */
    266284char* MIDI_OUT_GetErrorStr(INT32 err);
    267 
    268285
    269286/*
     
    331348INT32 MIDI_OUT_SendLongMessage(MidiDeviceHandle* handle, UBYTE* data, UINT32 size, UINT32 timestamp);
    332349
     350#ifdef __cplusplus
     351} /* extern "C" */
     352#endif
     353
    333354#endif // USE_PLATFORM_MIDI_OUT
    334355
  • trunk/openjdk/jdk/src/share/native/com/sun/media/sound/Utilities.h

    r2 r253  
    2727#include "SoundDefs.h"
    2828#include "Configure.h"          // put flags for debug msgs etc. here
    29 
    30 // return 1 if this platform is big endian, or 0 for little endian
    31 int UTIL_IsBigEndianPlatform();
    32 
    3329
    3430// ERROR PRINTS
     
    8177#endif
    8278
     79#ifdef __cplusplus
     80extern "C" {
     81#endif
     82
     83// return 1 if this platform is big endian, or 0 for little endian
     84int UTIL_IsBigEndianPlatform();
    8385
    8486void 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  
    2828
    2929/* include Java Sound specific headers as C code */
    30 extern "C" {
    3130#include "PLATFORM_API_WinOS_Util.h"
    32 }
    3331
    3432#if USE_PLATFORM_MIDI_IN == TRUE
  • trunk/openjdk/jdk/src/windows/native/com/sun/media/sound/PLATFORM_API_WinOS_Util.h

    r2 r253  
    5555} SysExQueue;
    5656
     57
     58#ifdef __cplusplus
     59extern "C" {
     60#endif
     61
    5762/* set the startTime field in MidiDeviceHandle */
    5863void MIDI_SetStartTime(MidiDeviceHandle* handle);
     
    6671void MIDI_WinDestroyLongBufferQueue(MidiDeviceHandle* handle);
    6772
     73#ifdef __cplusplus
     74} /* extern "C" */
     75#endif
     76
    6877#endif // USE_PLATFORM_MIDI_IN || USE_PLATFORM_MIDI_OUT
    6978
Note: See TracChangeset for help on using the changeset viewer.