/home/x64/Desktop/SDL-2.23.0-c7dff3a/src/core/android/SDL_android.c:515:13: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
JNIEnv *env = NULL;
^
/home/x64/Desktop/SDL-2.23.0-c7dff3a/src/core/android/SDL_android.c:2564:13: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
jstring jpermission = (*env)->NewStringUTF(env, permission);
This has been fixed, thanks!
There are 5 more:
in Android_SetWindowFullscreen function in SDL_androidwindow.c line 135- 144 -145 -147 -148:
SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
int old_w = window->w;
int old_h = window->h;
int new_w = ANativeWindow_getWidth(data->native_window);
int new_h = ANativeWindow_getHeight(data->native_window);
Fixed, thanks!
Please feel free to report additional issues on the bug tracker so they don’t get lost in discourse traffic:
Issues · libsdl-org/SDL (github.com)