diff options
Diffstat (limited to 'winsup/w32api/include/winnls.h')
-rw-r--r-- | winsup/w32api/include/winnls.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/w32api/include/winnls.h b/winsup/w32api/include/winnls.h index 140f9e97a..b03eb33f6 100644 --- a/winsup/w32api/include/winnls.h +++ b/winsup/w32api/include/winnls.h @@ -405,6 +405,9 @@ extern "C" { #define LGRPID_INDIC 15 #define LGRPID_GEORGIAN 16 #define LGRPID_ARMENIAN 17 +#define IS_HIGH_SURROGATE(c) (((c) & 0xFC00) == 0xD800) +#define IS_LOW_SURROGATE(c) (((c) & 0xFC00) == 0xDC00) +#define IS_SURROGATE_PAIR(hc,lc) (IS_HIGH_SURROGATE(hc) && IS_LOW_SURROGATE(lc)) #if (WINVER >= 0x0410) #define CAL_SYEARMONTH 47 #define CAL_ITWODIGITYEARMAX 48 |