Add support for using ICU DLL from Windows 10

Requires Windows 10 version 1903 (May 2019 Update):
https://docs.microsoft.com/en-us/windows/win32/intl/international-components-for-unicode--icu-

Also adds missing configure check for unicode/utext.h.
This commit is contained in:
Frederik Seiffert 2021-07-16 14:31:38 +02:00 committed by Frederik Seiffert
parent cf2dae1e21
commit dc32970502
14 changed files with 158 additions and 34 deletions

View file

@ -1,6 +1,16 @@
#import <Foundation/NSString.h>
#import <Foundation/NSException.h>
#if defined(HAVE_UNICODE_UTEXT_H)
#include <unicode/utext.h>
#endif
#if defined(HAVE_ICU_H)
#include <icu.h>
// icu.h in Windows 10 is missing a declaration of UTEXT_MAGIC
#ifndef UTEXT_MAGIC
#define UTEXT_MAGIC 0x345ad82c
#endif
#endif
/*
* Define TRUE/FALSE to be used with UBool parameters, as these are no longer