mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Squashed some compiler warnings with -Wmissing-prototypes enabled
This commit is contained in:
parent
cc0da9527a
commit
333f98d204
17 changed files with 48 additions and 38 deletions
|
|
@ -2975,6 +2975,7 @@ JUCE_END_IGNORE_WARNINGS_MSVC
|
|||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
|
||||
//==============================================================================
|
||||
bool initModule();
|
||||
bool initModule()
|
||||
{
|
||||
#if JUCE_MAC
|
||||
|
|
@ -2984,6 +2985,7 @@ bool initModule()
|
|||
return true;
|
||||
}
|
||||
|
||||
bool shutdownModule();
|
||||
bool shutdownModule()
|
||||
{
|
||||
return true;
|
||||
|
|
@ -2992,17 +2994,19 @@ bool shutdownModule()
|
|||
#undef JUCE_EXPORTED_FUNCTION
|
||||
|
||||
#if JUCE_WINDOWS
|
||||
extern "C" __declspec (dllexport) bool InitDll() { return initModule(); }
|
||||
extern "C" __declspec (dllexport) bool ExitDll() { return shutdownModule(); }
|
||||
#define JUCE_EXPORTED_FUNCTION
|
||||
#else
|
||||
#define JUCE_EXPORTED_FUNCTION extern "C" __attribute__ ((visibility ("default")))
|
||||
#define JUCE_EXPORTED_FUNCTION extern "C" __attribute__ ((visibility("default")))
|
||||
#endif
|
||||
|
||||
#if JUCE_LINUX
|
||||
#if JUCE_WINDOWS
|
||||
extern "C" __declspec (dllexport) bool InitDll() { return initModule(); }
|
||||
extern "C" __declspec (dllexport) bool ExitDll() { return shutdownModule(); }
|
||||
#elif JUCE_LINUX
|
||||
void* moduleHandle = nullptr;
|
||||
int moduleEntryCounter = 0;
|
||||
|
||||
JUCE_EXPORTED_FUNCTION bool ModuleEntry (void* sharedLibraryHandle);
|
||||
JUCE_EXPORTED_FUNCTION bool ModuleEntry (void* sharedLibraryHandle)
|
||||
{
|
||||
if (++moduleEntryCounter == 1)
|
||||
|
|
@ -3014,6 +3018,7 @@ bool shutdownModule()
|
|||
return true;
|
||||
}
|
||||
|
||||
JUCE_EXPORTED_FUNCTION bool ModuleExit();
|
||||
JUCE_EXPORTED_FUNCTION bool ModuleExit()
|
||||
{
|
||||
if (--moduleEntryCounter == 0)
|
||||
|
|
@ -3033,6 +3038,7 @@ bool shutdownModule()
|
|||
char modulePath[MaxPathLength] = { 0 };
|
||||
void* moduleHandle = nullptr;
|
||||
|
||||
JUCE_EXPORTED_FUNCTION bool bundleEntry (CFBundleRef ref);
|
||||
JUCE_EXPORTED_FUNCTION bool bundleEntry (CFBundleRef ref)
|
||||
{
|
||||
if (ref != nullptr)
|
||||
|
|
@ -3056,6 +3062,7 @@ bool shutdownModule()
|
|||
return initModule();
|
||||
}
|
||||
|
||||
JUCE_EXPORTED_FUNCTION bool bundleExit();
|
||||
JUCE_EXPORTED_FUNCTION bool bundleExit()
|
||||
{
|
||||
if (shutdownModule())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue