Merge pull request #860 from jmroot/strndup-interpose

Only interpose strndup if it exists
This commit is contained in:
Daan 2024-04-19 10:16:19 -07:00 committed by GitHub
commit e15498c4fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,9 @@ typedef struct mi_nothrow_s { int _tag; } mi_nothrow_t;
MI_INTERPOSE_MI(calloc),
MI_INTERPOSE_MI(realloc),
MI_INTERPOSE_MI(strdup),
#if defined(MAC_OS_X_VERSION_10_7) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
MI_INTERPOSE_MI(strndup),
#endif
MI_INTERPOSE_MI(realpath),
MI_INTERPOSE_MI(posix_memalign),
MI_INTERPOSE_MI(reallocf),