diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-07 20:36:41 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-07 21:00:23 +0800 |
| commit | 4ffff6a8a2f964919ad86d0f2a85e4761323f8b7 (patch) | |
| tree | 5d81f67af9cb1684d17137ad49a7dd10a0e2d4d5 /include | |
| parent | ccf48eb93a101ba2412497ad5f3966e4f31d2178 (diff) | |
| download | cru-4ffff6a8a2f964919ad86d0f2a85e4761323f8b7.tar.gz cru-4ffff6a8a2f964919ad86d0f2a85e4761323f8b7.tar.bz2 cru-4ffff6a8a2f964919ad86d0f2a85e4761323f8b7.zip | |
Remove CRU_PLATFORM_* macros.
Diffstat (limited to 'include')
| -rw-r--r-- | include/cru/base/platform/web/WebException.h | 2 | ||||
| -rw-r--r-- | include/cru/platform/graphics/cairo/Base.h | 2 | ||||
| -rw-r--r-- | include/cru/platform/gui/Input.h | 2 |
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; |
