aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cru/base/platform/web/WebException.h2
-rw-r--r--include/cru/platform/graphics/cairo/Base.h2
-rw-r--r--include/cru/platform/gui/Input.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/cru/base/platform/web/WebException.h b/include/cru/base/platform/web/WebException.h
index ba90bec7..adee5bcf 100644
--- a/include/cru/base/platform/web/WebException.h
+++ b/include/cru/base/platform/web/WebException.h
@@ -1,6 +1,6 @@
#pragma once
-#ifdef CRU_PLATFORM_EMSCRIPTEN
+#ifdef __EMSCRIPTEN__
#include "../../Base.h"
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;