diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp index 579f26fa80..68e792f7b7 100644 --- a/SDL/SDLMain.cpp +++ b/SDL/SDLMain.cpp @@ -60,6 +60,8 @@ SDLJoystick *joystick = NULL; #if PPSSPP_PLATFORM(MAC) || PPSSPP_PLATFORM(IOS) #include "UI/DarwinFileSystemServices.h" +#else +#define PostDarwinNotificationIfPossible(name, value) #endif #if PPSSPP_PLATFORM(MAC) diff --git a/UI/DarwinFileSystemServices.h b/UI/DarwinFileSystemServices.h index de4337aee1..53f7fc655d 100644 --- a/UI/DarwinFileSystemServices.h +++ b/UI/DarwinFileSystemServices.h @@ -39,6 +39,4 @@ void PostDarwinNotification(const char *name, const char *value); // Currently, this is just macOS only // to update the top bar #define PostDarwinNotificationIfPossible(name, value) PostDarwinNotification(name, value) -#else -#define PostDarwinNotificationIfPossible(name, value) #endif diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 9355fa8965..ffd82fd1fb 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -103,6 +103,7 @@ Target->OnClick.Add([&](UI::EventParams &) -> UI::EventReturn { \ }); #else +#define PostDarwinNotificationIfPossible(name, value) #define OnClickPostDarwinNotification #endif