Android: Fixed empty parameter list in signatures of internal functions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c
index e7f90ba..030f771 100644
--- a/src/core/android/SDL_android.c
+++ b/src/core/android/SDL_android.c
@@ -450,7 +450,7 @@ static void LocalReferenceHolder_Cleanup(struct LocalReferenceHolder *refholder)
}
}
-static SDL_bool LocalReferenceHolder_IsActive()
+static SDL_bool LocalReferenceHolder_IsActive(void)
{
return s_active > 0;
}
@@ -468,7 +468,7 @@ ANativeWindow* Android_JNI_GetNativeWindow(void)
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 @@ int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, i
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 @@ void Android_JNI_WriteAudioBuffer()
/* 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 @@ int Android_JNI_SetClipboardText(const char* text)
return 0;
}
-char* Android_JNI_GetClipboardText()
+char* Android_JNI_GetClipboardText(void)
{
SETUP_CLIPBOARD(SDL_strdup(""))
@@ -1168,7 +1168,7 @@ char* Android_JNI_GetClipboardText()
return SDL_strdup("");
}
-SDL_bool Android_JNI_HasClipboardText()
+SDL_bool Android_JNI_HasClipboardText(void)
{
SETUP_CLIPBOARD(SDL_FALSE)
@@ -1304,7 +1304,7 @@ int Android_JNI_GetTouchDeviceIds(int **ids) {
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 @@ void Android_JNI_ShowTextInput(SDL_Rect *inputRect)
inputRect->h );
}
-void Android_JNI_HideTextInput()
+void Android_JNI_HideTextInput(void)
{
/* has to match Activity constant */
const int COMMAND_TEXTEDIT_HIDE = 3;
diff --git a/src/core/android/SDL_android.h b/src/core/android/SDL_android.h
index d749bf1..1219d07 100644
--- a/src/core/android/SDL_android.h
+++ b/src/core/android/SDL_android.h
@@ -35,18 +35,18 @@ extern "C" {
/* 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 @@ int Android_JNI_FileClose(SDL_RWops* ctx);
/* 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);