From 66826ef8795b49658fc154a09ad5d763f0593877 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Mon, 31 Aug 2020 11:21:26 +0200 Subject: [PATCH] Rewrite some preprocessor conditionals --- lv2/sfizz_ui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lv2/sfizz_ui.cpp b/lv2/sfizz_ui.cpp index 4c4d49ed..6baf4021 100644 --- a/lv2/sfizz_ui.cpp +++ b/lv2/sfizz_ui.cpp @@ -172,9 +172,9 @@ instantiate(const LV2UI_Descriptor *descriptor, // name, and appending "Contents/Resources" (not overridable) // * on Windows, the folder is set programmatically // * on macOS, resource files are looked up using CFBundle APIs -#if _WIN32 +#if defined(_WIN32) IWin32PlatformFrame::setResourceBasePath((std::string(bundle_path) + "\\Contents\\Resources\\").c_str()); -#elif __APPLE__ +#elif defined(__APPLE__) #pragma message("TODO: make resources work on macOS using bundles") #endif