From 85704820fb6d4c7798fc656445fe7dd82766df8d Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 2 Jan 2016 23:16:04 -0800 Subject: [PATCH] GBA Thread: Fix _reloadDirectories being exported improperly --- src/gba/supervisor/thread.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gba/supervisor/thread.c b/src/gba/supervisor/thread.c index bbc75ce80..8265b1775 100644 --- a/src/gba/supervisor/thread.c +++ b/src/gba/supervisor/thread.c @@ -24,7 +24,9 @@ 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 @@ bool _reloadDirectories(struct GBAThread* threadContext) { return true; } -#ifndef DISABLE_THREADING #ifdef USE_PTHREADS static pthread_key_t _contextKey; static pthread_once_t _contextOnce = PTHREAD_ONCE_INIT;