Always enable atexit on Android (#971)

Obviously one can use a newer NDK for building an updated HarfBuzz
instead that now pretty old version however I am concerned if that
version checking is working with clang that is used with the newer
NDK versions.
This commit is contained in:
Ebrahim Byagowi 2018-04-12 14:17:03 +04:30 committed by GitHub
parent f24b0b9728
commit 632713babb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -226,11 +226,9 @@ static int errno = 0; /* Use something better? */
* mingw32 headers say atexit is safe to use in shared libraries. * mingw32 headers say atexit is safe to use in shared libraries.
*/ */
# define HB_USE_ATEXIT 1 # define HB_USE_ATEXIT 1
# elif defined(__ANDROID__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) # elif defined(__ANDROID__)
/* This was fixed in Android NKD r8 or r8b: /* This is available since Android NKD r8 or r8b:
* https://code.google.com/p/android/issues/detail?id=6455 * https://issuetracker.google.com/code/p/android/issues/detail?id=6455
* which introduced GCC 4.6:
* https://developer.android.com/tools/sdk/ndk/index.html
*/ */
# define HB_USE_ATEXIT 1 # define HB_USE_ATEXIT 1
# elif defined(__APPLE__) # elif defined(__APPLE__)