Loading...
include/secure/_string.h Libc-1669.40.2 Libc-1244.30.3
--- Libc/Libc-1669.40.2/include/secure/_string.h
+++ Libc/Libc-1244.30.3/include/secure/_string.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007,2017,2023 Apple Inc. All rights reserved.
+ * Copyright (c) 2007,2017 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  *
@@ -46,8 +46,7 @@
 /* memccpy, memcpy, mempcpy, memmove, memset, strcpy, strlcpy, stpcpy,
    strncpy, stpncpy, strcat, strlcat, and strncat */
 
-#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 || \
-		defined(__DRIVERKIT_VERSION_MIN_REQUIRED)
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
 #if __has_builtin(__builtin___memccpy_chk) && __HAS_FIXED_CHK_PROTOTYPES
 #undef memccpy
 /* void *memccpy(void *dst, const void *src, int c, size_t n) */
@@ -77,7 +76,6 @@
 		__builtin___memset_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
 #endif
 
-#ifndef UNIFDEF_DRIVERKIT
 #if __has_builtin(__builtin___strcpy_chk) || defined(__GNUC__)
 #undef strcpy
 /* char *strcpy(char *dst, const char *src) */
@@ -92,10 +90,7 @@
 #define stpcpy(dest, ...) \
 		__builtin___stpcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
 #endif
-#endif /* __DARWIN_C_LEVEL >= 200809L */
-#endif /* UNIFDEF_DRIVERKIT */
 
-#if __DARWIN_C_LEVEL >= 200809L
 #if __has_builtin(__builtin___stpncpy_chk) || __APPLE_CC__ >= 5666 || __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)
 #undef stpncpy
 /* char *stpncpy(char *dst, const char *src, size_t n) */
@@ -105,8 +100,7 @@
 #endif /* _DARWIN_C_LEVEL >= 200809L */
 
 #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 || \
-		defined(__DRIVERKIT_VERSION_MIN_REQUIRED)
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
 #if __has_builtin(__builtin___strlcpy_chk) && __HAS_FIXED_CHK_PROTOTYPES
 #undef strlcpy
 /* size_t strlcpy(char *dst, const char *source, size_t size) */
@@ -130,14 +124,12 @@
 		__builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
 #endif
 
-#ifndef UNIFDEF_DRIVERKIT
 #if __has_builtin(__builtin___strcat_chk) || defined(__GNUC__)
 #undef strcat
 /* char *strcat(char *s1, const char *s2) */
 #define strcat(dest, ...) \
 		__builtin___strcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
 #endif
-#endif /* UNIFDEF_DRIVERKIT */
 
 #if ! (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 32000)
 #if __has_builtin(__builtin___strncat_chk) || defined(__GNUC__)