Use compiler provided PTW_VERSION define for compatibility

This commit is contained in:
Robin Gareus 2025-12-05 16:00:09 +01:00
parent b938daca95
commit 728558e51c
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
9 changed files with 20 additions and 20 deletions

View file

@ -237,7 +237,7 @@ pthread_set_name (const char* str)
/* copy string and delete it when exiting */
thread_name.set (strdup (str)); // leaks
#if !defined PTW32_VERSION && defined _GNU_SOURCE
#if !defined __PTW32_VERSION && defined _GNU_SOURCE
/* set public thread name, up to 16 chars */
char ptn[16];
memset (ptn, 0, 16);