diff --git a/src/hb-private.hh b/src/hb-private.hh index 62c9fb278..eba797cfc 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -221,6 +221,12 @@ static int errno = 0; /* Use something better? */ * https://developer.android.com/tools/sdk/ndk/index.html */ # define HB_USE_ATEXIT 1 +# elif defined(__APPLE__) +/* For macOS and related platforms, the atexit man page indicates + * that it will be invoked when the library is unloaded, not only + * at application exit. + */ +# define HB_USE_ATEXIT 1 # endif #endif