Skip to content

Commit

Permalink
fix : ccxr compilation on macos (#1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
vats004 authored Feb 23, 2025
1 parent 27e1a3c commit 8c90bda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/thirdparty/freetype/gzip/ftzconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,14 @@
# define FAR
#endif

#if !defined(MACOS) && !defined(TARGET_OS_MAC)
#if !defined(__APPLE__) && !defined(__MACH__)
typedef unsigned char Byte; /* 8 bits */
#endif

#if defined(__APPLE__) && defined(__MACH__)
typedef char Byte; /* 8 bits(1 byte) */
#endif

typedef unsigned int uInt; /* 16 bits or more */
typedef unsigned long uLong; /* 32 bits or more */

Expand Down
2 changes: 1 addition & 1 deletion src/thirdparty/freetype/gzip/zutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ typedef unsigned long ulg;
# define OS_CODE 0x05
#endif

#if defined(MACOS) || defined(TARGET_OS_MAC)
#if defined(__APPLE__) || defined(__MACH__)
# define OS_CODE 0x07
# if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
# include <unix.h> /* for fdopen */
Expand Down

0 comments on commit 8c90bda

Please sign in to comment.