aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/platform')
-rw-r--r--include/cru/platform/graphics/cairo/Base.h2
-rw-r--r--include/cru/platform/gui/Input.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/platform/graphics/cairo/Base.h b/include/cru/platform/graphics/cairo/Base.h
index 350c9ea4..19205ed1 100644
--- a/include/cru/platform/graphics/cairo/Base.h
+++ b/include/cru/platform/graphics/cairo/Base.h
@@ -4,7 +4,7 @@
#include <cairo/cairo.h>
-#ifdef CRU_PLATFORM_WINDOWS
+#ifdef CRU_IS_DLL
#ifdef CRU_PLATFORM_GRAPHICS_CAIRO_EXPORT_API
#define CRU_PLATFORM_GRAPHICS_CAIRO_API __declspec(dllexport)
#else
diff --git a/include/cru/platform/gui/Input.h b/include/cru/platform/gui/Input.h
index dca064d4..1dbba850 100644
--- a/include/cru/platform/gui/Input.h
+++ b/include/cru/platform/gui/Input.h
@@ -140,7 +140,7 @@ struct KeyModifiers {
static constexpr KeyModifier Command = KeyModifier::FromOffset(4);
};
-#ifdef CRU_PLATFORM_OSX
+#ifdef __APPLE__
constexpr KeyModifier kKeyModifierCommand = KeyModifiers::Command;
#else
constexpr KeyModifier kKeyModifierCommand = KeyModifiers::Ctrl;