Skip to content

Commit

Permalink
revert __APPLE__ macro replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
portaloffreedom committed Oct 12, 2024
1 parent f7612d9 commit 18356b1
Show file tree
Hide file tree
Showing 15 changed files with 141 additions and 141 deletions.
2 changes: 1 addition & 1 deletion Editor/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17150,7 +17150,7 @@ class basic_json
result["platform"] = "win32";
#elif defined __linux__
result["platform"] = "linux";
#elif defined SDL_PLATFORM_APPLE
#elif defined __APPLE__
result["platform"] = "apple";
#elif defined __unix__
result["platform"] = "unix";
Expand Down
4 changes: 2 additions & 2 deletions Editor/tiny_gltf.h
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ class TinyGLTF {
bool preserve_image_channels_ = false; /// Default false(expand channels to
/// RGBA) for backward compatibility.

// Warning & error messages
// Warning & error messages
std::string warn_;
std::string err_;

Expand Down Expand Up @@ -1701,7 +1701,7 @@ void JsonParse(JsonDocument &doc, const char *str, size_t length,
}
} // namespace

#ifdef SDL_PLATFORM_APPLE
#ifdef __APPLE__
#include "TargetConditionals.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion Editor/ufbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@
#define ufbxi_read_u8(ptr) (*(const uint8_t*)(ptr))

// Detect support for `__attribute__((aligned(1)))`
#if !defined(UFBX_STANDARD_C) && (defined(__clang__) && defined(SDL_PLATFORM_APPLE))
#if !defined(UFBX_STANDARD_C) && (defined(__clang__) && defined(__APPLE__))
// Apple overrides Clang versioning, 5.0 here maps to 3.3
#if __clang_major__ >= 5
#define UFBXI_HAS_ATTRIBUTE_ALIGNED 1
Expand Down
2 changes: 1 addition & 1 deletion WickedEngine/Jolt/Core/Core.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
#define JPH_PLATFORM_LINUX
#elif defined(__FreeBSD__)
#define JPH_PLATFORM_FREEBSD
#elif defined(SDL_PLATFORM_APPLE)
#elif defined(__APPLE__)
#include <TargetConditionals.h>
#if defined(TARGET_OS_IPHONE) && !TARGET_OS_IPHONE
#define JPH_PLATFORM_MACOS
Expand Down
2 changes: 1 addition & 1 deletion WickedEngine/Utility/DirectXMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
// C4514/4820: Off by default noise
#include <math.h>
#include <float.h>
#ifndef SDL_PLATFORM_APPLE
#ifndef __APPLE__
# include <malloc.h>
#endif
#ifdef _MSC_VER
Expand Down
2 changes: 1 addition & 1 deletion WickedEngine/Utility/DirectXMathCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#if defined(_WIN32)
# define BUILD_PLATFORM_WIN 1
#elif defined(SDL_PLATFORM_APPLE)
#elif defined(__APPLE__)
# include "TargetConditionals.h"
# if defined(TARGET_OS_IPHONE)
# define BUILD_PLATFORM_IOS 1
Expand Down
Loading

0 comments on commit 18356b1

Please sign in to comment.