Skip to content

Commit

Permalink
Avoid compile error for Xcode 12
Browse files Browse the repository at this point in the history
One day, CFStringEncodingBytesToUnicode() and CFStringEncodingUnicodeToBytes()
was removed from header.
Probably, these are obsoleted.
  • Loading branch information
jca02266 committed Dec 12, 2020
1 parent 959d248 commit 9cd5632
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/header.c
Original file line number Diff line number Diff line change
Expand Up @@ -1923,6 +1923,11 @@ write_header(fp, hdr)
#include <CoreFoundation/CFString.h>
#include <CoreFoundation/CFStringEncodingExt.h>

#ifdef __APPLE__
unsigned int CFStringEncodingBytesToUnicode(unsigned long, unsigned long, char*, size_t, unsigned long*, UniChar*, int, unsigned long*);
unsigned int CFStringEncodingUnicodeToBytes(unsigned long, unsigned long, UniChar*, size_t, unsigned long*, char*, int, unsigned long*);
#endif /* __APPLE__ */

/* this is not need for Mac OS X v 10.2 later */
enum {
kCFStringEncodingAllowLossyConversion = 1,
Expand Down

0 comments on commit 9cd5632

Please sign in to comment.