mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
Fix for START_JUCE_APPLICATION when windows.h has been included.
This commit is contained in:
parent
1fd27d7ed6
commit
557b4f99ac
1 changed files with 15 additions and 6 deletions
|
|
@ -89,14 +89,23 @@ public:
|
|||
#define START_JUCE_APPLICATION(AppClass) \
|
||||
juce::JUCEApplication* juce_CreateApplication() { return new AppClass(); }
|
||||
|
||||
#elif JUCE_WINDOWS && defined (WINAPI)
|
||||
#define START_JUCE_APPLICATION(AppClass) \
|
||||
static juce::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
|
||||
int WINAPI WinMain (HINSTANCE, HINSTANCE, LPSTR, int) \
|
||||
{ \
|
||||
juce::JUCEApplication::createInstance = &juce_CreateApplication; \
|
||||
return juce::JUCEApplication::main(); \
|
||||
}
|
||||
|
||||
#elif JUCE_WINDOWS
|
||||
#define START_JUCE_APPLICATION(AppClass) \
|
||||
static juce::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
|
||||
int __stdcall WinMain (void*, void*, const char*, int) \
|
||||
{ \
|
||||
juce::JUCEApplication::createInstance = &juce_CreateApplication; \
|
||||
return juce::JUCEApplication::main(); \
|
||||
}
|
||||
static juce::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
|
||||
int __stdcall WinMain (void*, void*, const char*, int) \
|
||||
{ \
|
||||
juce::JUCEApplication::createInstance = &juce_CreateApplication; \
|
||||
return juce::JUCEApplication::main(); \
|
||||
}
|
||||
|
||||
#else
|
||||
#define START_JUCE_APPLICATION(AppClass) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue