director_thread test fixes for MacOS

Add extra debugging and correctly detect MacOS using __APPLE__ macro
This commit is contained in:
William S Fulton 2018-12-21 19:08:15 +00:00
commit 5a388863fa
2 changed files with 7 additions and 7 deletions

View file

@ -31,7 +31,7 @@ SWIGINTERN int Swig::GetThreadName(char *name, size_t len) {
#endif
}
#elif defined(__unix__)
#elif defined(__unix__) || defined(__APPLE__)
#include <pthread.h>
SWIGINTERN int Swig::GetThreadName(char *name, size_t len) {