Skip to content

Commit

Permalink
Avoid extern "C" for main function
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Dec 1, 2024
1 parent 481c457 commit ee201b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/juce_events/messages/juce_Initialisation.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class JUCE_API ScopedJuceInitialiser_GUI final
JUCE_END_IGNORE_WARNINGS_GCC_LIKE

#define JUCE_MAIN_FUNCTION_DEFINITION \
extern "C" JUCE_MAIN_FUNCTION \
JUCE_MAIN_FUNCTION \
{ \
juce::JUCEApplicationBase::createInstance = &juce_CreateApplication; \
juce::JUCEApplicationBase::iOSCustomDelegate = juce_GetIOSCustomDelegateClass(); \
Expand All @@ -170,7 +170,7 @@ class JUCE_API ScopedJuceInitialiser_GUI final
}

#define JUCE_MAIN_FUNCTION_DEFINITION \
extern "C" JUCE_MAIN_FUNCTION \
JUCE_MAIN_FUNCTION \
{ \
juce::JUCEApplicationBase::createInstance = &juce_CreateApplication; \
return juce::JUCEApplicationBase::main(JUCE_MAIN_FUNCTION_ARGS); \
Expand Down

0 comments on commit ee201b7

Please sign in to comment.