Skip to content

Commit

Permalink
platform/android_nosdl: fix forgotten static
Browse files Browse the repository at this point in the history
  • Loading branch information
mittorn committed Dec 16, 2023
1 parent 5f9bd51 commit 849c075
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engine/platform/android/android_nosdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ struct jnimethods_s jni;
struct jnimouse_s jnimouse;

static jmp_buf crash_frame, restore_frame;
char crash_text[1024];
static char crash_text[1024];

#define Android_Lock() pthread_mutex_lock(&events.mutex);
#define Android_Unlock() pthread_mutex_unlock(&events.mutex);
Expand Down
2 changes: 1 addition & 1 deletion engine/platform/android/eglutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static dllfunc_t egl_funcs[] =
{ NULL, NULL }
};
#undef EGL_FF
dll_info_t egl_info = { "libEGL.so", egl_funcs, false };
static dll_info_t egl_info = { "libEGL.so", egl_funcs, false };

struct eglstate_s eglstate;

Expand Down
14 changes: 14 additions & 0 deletions engine/platform/android/eglutil.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
/*
eglutil.h - EGL context utility
Copyright (C) 2023 mittorn
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#ifndef EGLUTIL_H
#define EGLUTIL_H
#include "platform/platform.h"
Expand Down
2 changes: 1 addition & 1 deletion engine/platform/android/vid_android.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static dllfunc_t android_funcs[] =
{ NULL, NULL }
};
#undef NW_FF
dll_info_t android_info = { "libandroid.so", android_funcs, false };
static dll_info_t android_info = { "libandroid.so", android_funcs, false };

/*
========================
Expand Down

0 comments on commit 849c075

Please sign in to comment.