Skip to content

Commit

Permalink
Merge pull request #163 from triplef/icu-68-fix
Browse files Browse the repository at this point in the history
Fix compilation with ICU 68
  • Loading branch information
rfm committed Nov 12, 2020
2 parents d1bd406 + 06fa779 commit f7bbefd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Source/GSICUString.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
#import <Foundation/NSException.h>
#include <unicode/utext.h>

/*
* Define TRUE/FALSE to be used with UBool parameters, as these are no longer
* defined in ICU as of ICU 68.
*/
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif

/**
* Initialises a UText structure with an NSString. If txt is NULL, then this
* allocates a new structure on the heap, otherwise it fills in the existing
Expand Down

0 comments on commit f7bbefd

Please sign in to comment.