all repos — mgba @ 85704820fb6d4c7798fc656445fe7dd82766df8d

mGBA Game Boy Advance Emulator

GBA Thread: Fix _reloadDirectories being exported improperly
Jeffrey Pfau jeffrey@endrift.com
Sat, 02 Jan 2016 23:16:04 -0800
commit

85704820fb6d4c7798fc656445fe7dd82766df8d

parent

7174bb670794922749db05d9a98c643bc2952972

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M src/gba/supervisor/thread.csrc/gba/supervisor/thread.c

@@ -24,7 +24,9 @@ #include <signal.h>

static const float _defaultFPSTarget = 60.f; -bool _reloadDirectories(struct GBAThread* threadContext) { +#ifndef DISABLE_THREADING + +static bool _reloadDirectories(struct GBAThread* threadContext) { GBADirectorySetDetachBase(&threadContext->dirs); char basename[PATH_MAX];

@@ -55,7 +57,6 @@ }

return true; } -#ifndef DISABLE_THREADING #ifdef USE_PTHREADS static pthread_key_t _contextKey; static pthread_once_t _contextOnce = PTHREAD_ONCE_INIT;