mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix C++23 compilation
This commit is contained in:
parent
b77249ad52
commit
5ce2fc388e
16 changed files with 817 additions and 760 deletions
|
|
@ -153,6 +153,14 @@
|
|||
#include "misc/juce_ConsoleApplication.cpp"
|
||||
#include "misc/juce_ScopeGuard.cpp"
|
||||
#include "network/juce_MACAddress.cpp"
|
||||
|
||||
#if ! JUCE_WINDOWS
|
||||
#include "native/juce_SharedCode_posix.h"
|
||||
#include "native/juce_NamedPipe_posix.cpp"
|
||||
#else
|
||||
#include "native/juce_Files_windows.cpp"
|
||||
#endif
|
||||
|
||||
#include "network/juce_NamedPipe.cpp"
|
||||
#include "network/juce_Socket.cpp"
|
||||
#include "network/juce_IPAddress.cpp"
|
||||
|
|
@ -197,12 +205,8 @@
|
|||
#include "native/juce_PlatformTimerListener.h"
|
||||
|
||||
//==============================================================================
|
||||
#if ! JUCE_WINDOWS
|
||||
#include "native/juce_SharedCode_posix.h"
|
||||
#include "native/juce_NamedPipe_posix.cpp"
|
||||
#if ! JUCE_ANDROID || __ANDROID_API__ >= 24
|
||||
#include "native/juce_IPAddress_posix.h"
|
||||
#endif
|
||||
#if ! JUCE_WINDOWS && (! JUCE_ANDROID || __ANDROID_API__ >= 24)
|
||||
#include "native/juce_IPAddress_posix.h"
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -218,7 +222,6 @@
|
|||
|
||||
//==============================================================================
|
||||
#elif JUCE_WINDOWS
|
||||
#include "native/juce_Files_windows.cpp"
|
||||
#include "native/juce_Network_windows.cpp"
|
||||
#include "native/juce_Registry_windows.cpp"
|
||||
#include "native/juce_SystemStats_windows.cpp"
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ bool File::setAsCurrentWorkingDirectory() const
|
|||
|
||||
//==============================================================================
|
||||
// The unix siginterrupt function is deprecated - this does the same job.
|
||||
int juce_siginterrupt ([[maybe_unused]] int sig, [[maybe_unused]] int flag)
|
||||
inline int juce_siginterrupt ([[maybe_unused]] int sig, [[maybe_unused]] int flag)
|
||||
{
|
||||
#if JUCE_WASM
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -255,8 +255,6 @@ static void handleCrash (int signum)
|
|||
globalCrashHandler ((void*) (pointer_sized_int) signum);
|
||||
::kill (getpid(), SIGKILL);
|
||||
}
|
||||
|
||||
int juce_siginterrupt (int sig, int flag);
|
||||
#endif
|
||||
|
||||
void SystemStats::setApplicationCrashHandler (CrashHandlerFunction handler)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue