Get rid of _FX_PLATFORM_APPLE_.
Use defined(OS_MACOSX) instead.
Change-Id: I07bff5d925ab9eb15c3b3a1771f24b3b58cd0365
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/70875
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fxcrt/fx_system.h b/core/fxcrt/fx_system.h
index 2a54a5f..b7c3ffa 100644
--- a/core/fxcrt/fx_system.h
+++ b/core/fxcrt/fx_system.h
@@ -21,13 +21,11 @@
// _FX_PLATFORM_ values;
#define _FX_PLATFORM_LINUX_ 2
-#define _FX_PLATFORM_APPLE_ 3
#if defined(_WIN32) || defined(_WIN64)
#elif defined(__linux__)
#define _FX_PLATFORM_ _FX_PLATFORM_LINUX_
#elif defined(__APPLE__)
-#define _FX_PLATFORM_ _FX_PLATFORM_APPLE_
#elif defined(__asmjs__) || defined(__wasm__)
#define _FX_PLATFORM_ _FX_PLATFORM_LINUX_
#endif
@@ -45,10 +43,10 @@
#include <sal.h>
#endif // defined(OS_WIN)
-#if _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
+#if defined(OS_MACOSX)
#include <Carbon/Carbon.h>
#include <libkern/OSAtomic.h>
-#endif // _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
+#endif // defined(OS_MACOSX)
#ifdef __cplusplus
extern "C" {