Android: Fixed empty parameter list in signatures of internal functions.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 09 May 2015 22:42:23 +0200
changeset 95940285b5e1c5ab
parent 9593 66631a359254
child 9595 6027a65e8528
Android: Fixed empty parameter list in signatures of internal functions.
src/core/android/SDL_android.c
src/core/android/SDL_android.h
     1.1 --- a/src/core/android/SDL_android.c	Fri May 08 21:53:02 2015 +0200
     1.2 +++ b/src/core/android/SDL_android.c	Sat May 09 22:42:23 2015 +0200
     1.3 @@ -450,7 +450,7 @@
     1.4      }
     1.5  }
     1.6  
     1.7 -static SDL_bool LocalReferenceHolder_IsActive()
     1.8 +static SDL_bool LocalReferenceHolder_IsActive(void)
     1.9  {
    1.10      return s_active > 0;
    1.11  }
    1.12 @@ -468,7 +468,7 @@
    1.13      return anw;
    1.14  }
    1.15  
    1.16 -void Android_JNI_SwapWindow()
    1.17 +void Android_JNI_SwapWindow(void)
    1.18  {
    1.19      JNIEnv *mEnv = Android_JNI_GetEnv();
    1.20      (*mEnv)->CallStaticVoidMethod(mEnv, mActivityClass, midFlipBuffers);
    1.21 @@ -620,12 +620,12 @@
    1.22      return audioBufferFrames;
    1.23  }
    1.24  
    1.25 -void * Android_JNI_GetAudioBuffer()
    1.26 +void * Android_JNI_GetAudioBuffer(void)
    1.27  {
    1.28      return audioBufferPinned;
    1.29  }
    1.30  
    1.31 -void Android_JNI_WriteAudioBuffer()
    1.32 +void Android_JNI_WriteAudioBuffer(void)
    1.33  {
    1.34      JNIEnv *mAudioEnv = Android_JNI_GetEnv();
    1.35  
    1.36 @@ -640,7 +640,7 @@
    1.37      /* JNI_COMMIT means the changes are committed to the VM but the buffer remains pinned */
    1.38  }
    1.39  
    1.40 -void Android_JNI_CloseAudioDevice()
    1.41 +void Android_JNI_CloseAudioDevice(void)
    1.42  {
    1.43      JNIEnv *env = Android_JNI_GetEnv();
    1.44  
    1.45 @@ -1142,7 +1142,7 @@
    1.46      return 0;
    1.47  }
    1.48  
    1.49 -char* Android_JNI_GetClipboardText()
    1.50 +char* Android_JNI_GetClipboardText(void)
    1.51  {
    1.52      SETUP_CLIPBOARD(SDL_strdup(""))
    1.53  
    1.54 @@ -1168,7 +1168,7 @@
    1.55      return SDL_strdup("");
    1.56  }
    1.57  
    1.58 -SDL_bool Android_JNI_HasClipboardText()
    1.59 +SDL_bool Android_JNI_HasClipboardText(void)
    1.60  {
    1.61      SETUP_CLIPBOARD(SDL_FALSE)
    1.62  
    1.63 @@ -1304,7 +1304,7 @@
    1.64      return number;
    1.65  }
    1.66  
    1.67 -void Android_JNI_PollInputDevices()
    1.68 +void Android_JNI_PollInputDevices(void)
    1.69  {
    1.70      JNIEnv *env = Android_JNI_GetEnv();
    1.71      (*env)->CallStaticVoidMethod(env, mActivityClass, midPollInputDevices);    
    1.72 @@ -1351,7 +1351,7 @@
    1.73                                 inputRect->h );
    1.74  }
    1.75  
    1.76 -void Android_JNI_HideTextInput()
    1.77 +void Android_JNI_HideTextInput(void)
    1.78  {
    1.79      /* has to match Activity constant */
    1.80      const int COMMAND_TEXTEDIT_HIDE = 3;
     2.1 --- a/src/core/android/SDL_android.h	Fri May 08 21:53:02 2015 +0200
     2.2 +++ b/src/core/android/SDL_android.h	Sat May 09 22:42:23 2015 +0200
     2.3 @@ -35,18 +35,18 @@
     2.4  /* Interface from the SDL library into the Android Java activity */
     2.5  /* extern SDL_bool Android_JNI_CreateContext(int majorVersion, int minorVersion, int red, int green, int blue, int alpha, int buffer, int depth, int stencil, int buffers, int samples);
     2.6  extern SDL_bool Android_JNI_DeleteContext(void); */
     2.7 -extern void Android_JNI_SwapWindow();
     2.8 +extern void Android_JNI_SwapWindow(void);
     2.9  extern void Android_JNI_SetActivityTitle(const char *title);
    2.10  extern SDL_bool Android_JNI_GetAccelerometerValues(float values[3]);
    2.11  extern void Android_JNI_ShowTextInput(SDL_Rect *inputRect);
    2.12 -extern void Android_JNI_HideTextInput();
    2.13 +extern void Android_JNI_HideTextInput(void);
    2.14  extern ANativeWindow* Android_JNI_GetNativeWindow(void);
    2.15  
    2.16  /* Audio support */
    2.17  extern int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
    2.18 -extern void* Android_JNI_GetAudioBuffer();
    2.19 -extern void Android_JNI_WriteAudioBuffer();
    2.20 -extern void Android_JNI_CloseAudioDevice();
    2.21 +extern void* Android_JNI_GetAudioBuffer(void);
    2.22 +extern void Android_JNI_WriteAudioBuffer(void);
    2.23 +extern void Android_JNI_CloseAudioDevice(void);
    2.24  
    2.25  #include "SDL_rwops.h"
    2.26  
    2.27 @@ -59,14 +59,14 @@
    2.28  
    2.29  /* Clipboard support */
    2.30  int Android_JNI_SetClipboardText(const char* text);
    2.31 -char* Android_JNI_GetClipboardText();
    2.32 -SDL_bool Android_JNI_HasClipboardText();
    2.33 +char* Android_JNI_GetClipboardText(void);
    2.34 +SDL_bool Android_JNI_HasClipboardText(void);
    2.35  
    2.36  /* Power support */
    2.37  int Android_JNI_GetPowerInfo(int* plugged, int* charged, int* battery, int* seconds, int* percent);
    2.38      
    2.39  /* Joystick support */
    2.40 -void Android_JNI_PollInputDevices();
    2.41 +void Android_JNI_PollInputDevices(void);
    2.42  
    2.43  /* Video */
    2.44  void Android_JNI_SuspendScreenSaver(SDL_bool suspend);