diff SDL_sound.h @ 386:8c8ecd1008c9

Changed DECLSPEC definition.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 05 Jul 2002 22:34:55 +0000
parents b3ac77d08e79
children fced17b9890c
line wrap: on
line diff
--- a/SDL_sound.h	Fri Jul 05 22:32:54 2002 +0000
+++ b/SDL_sound.h	Fri Jul 05 22:34:55 2002 +0000
@@ -70,11 +70,16 @@
 extern "C" {
 #endif
 
-/* !!! FIXME: Use SDLCALL instead. */
 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
+
+#ifndef SDLCALL  /* may not be defined with older SDL releases. */
+#define SDLCALL
+#endif
+
 #ifdef SDL_SOUND_DLL_EXPORTS
-#  undef DECLSPEC
-#  define DECLSPEC __declspec(dllexport)
+#  define SNDDECLSPEC __declspec(dllexport) SDLCALL
+#else
+#  define SNDDECLSPEC SDLCALL
 #endif
 
 #define SOUND_VER_MAJOR 0
@@ -258,7 +263,7 @@
  * \sa Sound_Version
  * \sa SOUND_VERSION
  */
-DECLSPEC void Sound_GetLinkedVersion(Sound_Version *ver);
+SNDDECLSPEC void Sound_GetLinkedVersion(Sound_Version *ver);
 
 
 /**
@@ -276,7 +281,7 @@
  *
  * \sa Sound_Quit
  */
-DECLSPEC int Sound_Init(void);
+SNDDECLSPEC int Sound_Init(void);
 
 
 /**
@@ -301,7 +306,7 @@
  *
  * \sa Sound_Init
  */
-DECLSPEC int Sound_Quit(void);
+SNDDECLSPEC int Sound_Quit(void);
 
 
 /**
@@ -336,7 +341,7 @@
  *
  * \sa Sound_DecoderInfo
  */
-DECLSPEC const Sound_DecoderInfo **Sound_AvailableDecoders(void);
+SNDDECLSPEC const Sound_DecoderInfo **Sound_AvailableDecoders(void);
 
 
 /**
@@ -354,7 +359,7 @@
  *
  * \sa Sound_ClearError
  */
-DECLSPEC const char *Sound_GetError(void);
+SNDDECLSPEC const char *Sound_GetError(void);
 
 
 /**
@@ -365,7 +370,7 @@
  *
  * \sa Sound_GetError
  */
-DECLSPEC void Sound_ClearError(void);
+SNDDECLSPEC void Sound_ClearError(void);
 
 
 /**
@@ -440,7 +445,7 @@
  * \sa Sound_Rewind
  * \sa Sound_FreeSample
  */
-DECLSPEC Sound_Sample *Sound_NewSample(SDL_RWops *rw, const char *ext,
+SNDDECLSPEC Sound_Sample *Sound_NewSample(SDL_RWops *rw, const char *ext,
                                               Sound_AudioInfo *desired,
                                               Uint32 bufferSize);
 
@@ -471,7 +476,7 @@
  * \sa Sound_Rewind
  * \sa Sound_FreeSample
  */
-DECLSPEC Sound_Sample *Sound_NewSampleFromFile(const char *filename,
+SNDDECLSPEC Sound_Sample *Sound_NewSampleFromFile(const char *filename,
                                                       Sound_AudioInfo *desired,
                                                       Uint32 bufferSize);
 
@@ -489,7 +494,7 @@
  * \sa Sound_NewSample
  * \sa Sound_NewSampleFromFile
  */
-DECLSPEC void Sound_FreeSample(Sound_Sample *sample);
+SNDDECLSPEC void Sound_FreeSample(Sound_Sample *sample);
 
 
 /**
@@ -517,7 +522,7 @@
  * \sa Sound_Decode
  * \sa Sound_DecodeAll
  */
-DECLSPEC int Sound_SetBufferSize(Sound_Sample *sample, Uint32 new_size);
+SNDDECLSPEC int Sound_SetBufferSize(Sound_Sample *sample, Uint32 new_size);
 
 
 /**
@@ -539,7 +544,7 @@
  * \sa Sound_Seek
  * \sa Sound_Rewind
  */
-DECLSPEC Uint32 Sound_Decode(Sound_Sample *sample);
+SNDDECLSPEC Uint32 Sound_Decode(Sound_Sample *sample);
 
 
 /**
@@ -575,7 +580,7 @@
  * \sa Sound_Decode
  * \sa Sound_SetBufferSize
  */
-DECLSPEC Uint32 Sound_DecodeAll(Sound_Sample *sample);
+SNDDECLSPEC Uint32 Sound_DecodeAll(Sound_Sample *sample);
 
 
 /**
@@ -609,7 +614,7 @@
  *
  * \sa Sound_Seek
  */
-DECLSPEC int Sound_Rewind(Sound_Sample *sample);
+SNDDECLSPEC int Sound_Rewind(Sound_Sample *sample);
 
 
 /**
@@ -654,7 +659,7 @@
  *
  * \sa Sound_Rewind
  */
-DECLSPEC int Sound_Seek(Sound_Sample *sample, Uint32 ms);
+SNDDECLSPEC int Sound_Seek(Sound_Sample *sample, Uint32 ms);
 
 
 #ifdef __cplusplus