From 4ffff6a8a2f964919ad86d0f2a85e4761323f8b7 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 7 Nov 2025 20:36:41 +0800 Subject: Remove CRU_PLATFORM_* macros. --- include/cru/base/platform/web/WebException.h | 2 +- include/cru/platform/graphics/cairo/Base.h | 2 +- include/cru/platform/gui/Input.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include/cru') 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 -#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; -- cgit v1.2.3