GBA Thread: Fix _reloadDirectories being exported improperly

This commit is contained in:
Jeffrey Pfau 2016-01-02 23:16:04 -08:00
parent 7174bb6707
commit 85704820fb
1 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,9 @@
static const float _defaultFPSTarget = 60.f; static const float _defaultFPSTarget = 60.f;
bool _reloadDirectories(struct GBAThread* threadContext) { #ifndef DISABLE_THREADING
static bool _reloadDirectories(struct GBAThread* threadContext) {
GBADirectorySetDetachBase(&threadContext->dirs); GBADirectorySetDetachBase(&threadContext->dirs);
char basename[PATH_MAX]; char basename[PATH_MAX];
@ -55,7 +57,6 @@ bool _reloadDirectories(struct GBAThread* threadContext) {
return true; return true;
} }
#ifndef DISABLE_THREADING
#ifdef USE_PTHREADS #ifdef USE_PTHREADS
static pthread_key_t _contextKey; static pthread_key_t _contextKey;
static pthread_once_t _contextOnce = PTHREAD_ONCE_INIT; static pthread_once_t _contextOnce = PTHREAD_ONCE_INIT;