Loading...
private/malloc_implementation.h libmalloc-409.81.2 libmalloc-474.0.13
--- libmalloc/libmalloc-409.81.2/private/malloc_implementation.h
+++ libmalloc/libmalloc-474.0.13/private/malloc_implementation.h
@@ -34,7 +34,8 @@
 #include <stddef.h>
 #include <ptrauth.h>
 
-#if  __PTRAUTH_INTRINSICS__ && __has_builtin(__builtin_ptrauth_string_discriminator)
+#if defined(__PTRAUTH_INTRINSICS__) && __PTRAUTH_INTRINSICS__ && \
+		__has_builtin(__builtin_ptrauth_string_discriminator)
 #define LIBMALLOC_FUNCTION_PTRAUTH(f) \
    __ptrauth(ptrauth_key_function_pointer, 1, \
            __builtin_ptrauth_string_discriminator("libmalloc_functions_" # f) \
@@ -87,7 +88,7 @@
  * This is SPI that is *not* intended for use elsewhere. It will change
  * and will eventually be removed, without prior warning.
  */
-#if MALLOC_ENABLE_MSL_LITE_SPI
+#if defined(MALLOC_ENABLE_MSL_LITE_SPI) && MALLOC_ENABLE_MSL_LITE_SPI
 
 typedef struct szone_s szone_t;
 
@@ -118,7 +119,7 @@
 	malloc_zone_t *(*basic_zone)(szone_t *zone);
 } _malloc_msl_lite_hooks_t;
 
-#endif // MALLOC_ENABLE_MSL_LITE_SPI
+#endif // defined(MALLOC_ENABLE_MSL_LITE_SPI) && MALLOC_ENABLE_MSL_LITE_SPI
 
 #endif