Skip to content

Commit

Permalink
Set PNG_ARM_NEON_OPT=0 for Apple
Browse files Browse the repository at this point in the history
  • Loading branch information
MoNTE48 authored and MoNTE48 committed Feb 21, 2021
1 parent 04dcc3c commit 599631f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 8 additions & 2 deletions source/Irrlicht/Irrlicht.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3195,7 +3195,10 @@
GCC_C_LANGUAGE_STANDARD = c11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
"GCC_PREPROCESSOR_DEFINITIONS[arch=*]" = "DEBUG=1";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"PNG_ARM_NEON_OPT=0",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
Expand Down Expand Up @@ -3245,7 +3248,10 @@
GCC_C_LANGUAGE_STANDARD = c11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = fast;
"GCC_PREPROCESSOR_DEFINITIONS[arch=*]" = "NDEBUG=1";
GCC_PREPROCESSOR_DEFINITIONS = (
"NDEBUG=1",
"PNG_ARM_NEON_OPT=0",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
Expand Down
5 changes: 2 additions & 3 deletions source/Irrlicht/libpng/pngrtran.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

#include "pngpriv.h"

// iOS Undefined symbols for architecture arm64
/*#ifdef PNG_ARM_NEON_IMPLEMENTATION
#ifdef PNG_ARM_NEON_IMPLEMENTATION
# if PNG_ARM_NEON_IMPLEMENTATION == 1
# define PNG_ARM_NEON_INTRINSICS_AVAILABLE
# if defined(_MSC_VER) && defined(_M_ARM64)
Expand All @@ -28,7 +27,7 @@
# include <arm_neon.h>
# endif
# endif
#endif*/
#endif

#ifdef PNG_READ_SUPPORTED

Expand Down

0 comments on commit 599631f

Please sign in to comment.