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 9594 0285b5e1c5ab
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
--- a/src/core/android/SDL_android.c	Fri May 08 21:53:02 2015 +0200
+++ b/src/core/android/SDL_android.c	Sat May 09 22:42:23 2015 +0200
@@ -450,7 +450,7 @@
     }
 }
 
-static SDL_bool LocalReferenceHolder_IsActive()
+static SDL_bool LocalReferenceHolder_IsActive(void)
 {
     return s_active > 0;
 }
@@ -468,7 +468,7 @@
     return anw;
 }
 
-void Android_JNI_SwapWindow()
+void Android_JNI_SwapWindow(void)
 {
     JNIEnv *mEnv = Android_JNI_GetEnv();
     (*mEnv)->CallStaticVoidMethod(mEnv, mActivityClass, midFlipBuffers);
@@ -620,12 +620,12 @@
     return audioBufferFrames;
 }
 
-void * Android_JNI_GetAudioBuffer()
+void * Android_JNI_GetAudioBuffer(void)
 {
     return audioBufferPinned;
 }
 
-void Android_JNI_WriteAudioBuffer()
+void Android_JNI_WriteAudioBuffer(void)
 {
     JNIEnv *mAudioEnv = Android_JNI_GetEnv();
 
@@ -640,7 +640,7 @@
     /* JNI_COMMIT means the changes are committed to the VM but the buffer remains pinned */
 }
 
-void Android_JNI_CloseAudioDevice()
+void Android_JNI_CloseAudioDevice(void)
 {
     JNIEnv *env = Android_JNI_GetEnv();
 
@@ -1142,7 +1142,7 @@
     return 0;
 }
 
-char* Android_JNI_GetClipboardText()
+char* Android_JNI_GetClipboardText(void)
 {
     SETUP_CLIPBOARD(SDL_strdup(""))
 
@@ -1168,7 +1168,7 @@
     return SDL_strdup("");
 }
 
-SDL_bool Android_JNI_HasClipboardText()
+SDL_bool Android_JNI_HasClipboardText(void)
 {
     SETUP_CLIPBOARD(SDL_FALSE)
 
@@ -1304,7 +1304,7 @@
     return number;
 }
 
-void Android_JNI_PollInputDevices()
+void Android_JNI_PollInputDevices(void)
 {
     JNIEnv *env = Android_JNI_GetEnv();
     (*env)->CallStaticVoidMethod(env, mActivityClass, midPollInputDevices);    
@@ -1351,7 +1351,7 @@
                                inputRect->h );
 }
 
-void Android_JNI_HideTextInput()
+void Android_JNI_HideTextInput(void)
 {
     /* has to match Activity constant */
     const int COMMAND_TEXTEDIT_HIDE = 3;
--- a/src/core/android/SDL_android.h	Fri May 08 21:53:02 2015 +0200
+++ b/src/core/android/SDL_android.h	Sat May 09 22:42:23 2015 +0200
@@ -35,18 +35,18 @@
 /* Interface from the SDL library into the Android Java activity */
 /* 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);
 extern SDL_bool Android_JNI_DeleteContext(void); */
-extern void Android_JNI_SwapWindow();
+extern void Android_JNI_SwapWindow(void);
 extern void Android_JNI_SetActivityTitle(const char *title);
 extern SDL_bool Android_JNI_GetAccelerometerValues(float values[3]);
 extern void Android_JNI_ShowTextInput(SDL_Rect *inputRect);
-extern void Android_JNI_HideTextInput();
+extern void Android_JNI_HideTextInput(void);
 extern ANativeWindow* Android_JNI_GetNativeWindow(void);
 
 /* Audio support */
 extern int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
-extern void* Android_JNI_GetAudioBuffer();
-extern void Android_JNI_WriteAudioBuffer();
-extern void Android_JNI_CloseAudioDevice();
+extern void* Android_JNI_GetAudioBuffer(void);
+extern void Android_JNI_WriteAudioBuffer(void);
+extern void Android_JNI_CloseAudioDevice(void);
 
 #include "SDL_rwops.h"
 
@@ -59,14 +59,14 @@
 
 /* Clipboard support */
 int Android_JNI_SetClipboardText(const char* text);
-char* Android_JNI_GetClipboardText();
-SDL_bool Android_JNI_HasClipboardText();
+char* Android_JNI_GetClipboardText(void);
+SDL_bool Android_JNI_HasClipboardText(void);
 
 /* Power support */
 int Android_JNI_GetPowerInfo(int* plugged, int* charged, int* battery, int* seconds, int* percent);
     
 /* Joystick support */
-void Android_JNI_PollInputDevices();
+void Android_JNI_PollInputDevices(void);
 
 /* Video */
 void Android_JNI_SuspendScreenSaver(SDL_bool suspend);