Use size of pointer as size of pthread_t in SIZEOF_PTHREAD_T (GH PR #48)
This commit is contained in:
parent
013bbe243d
commit
f868420725
@ -2,14 +2,12 @@
|
|||||||
|
|
||||||
#undef SIZEOF_PTHREAD_T
|
#undef SIZEOF_PTHREAD_T
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _MSC_VER
|
||||||
# if defined(__APPLE__)
|
# ifdef __SIZEOF_POINTER__
|
||||||
# ifdef __LP64__
|
# define SIZEOF_PTHREAD_T __SIZEOF_POINTER__
|
||||||
# define SIZEOF_PTHREAD_T 8
|
|
||||||
# else
|
|
||||||
# define SIZEOF_PTHREAD_T 4
|
|
||||||
# endif
|
# endif
|
||||||
# else
|
|
||||||
# define SIZEOF_PTHREAD_T 4
|
# ifndef SIZEOF_PTHREAD_T
|
||||||
|
# error unable to determine size of pthread_t
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user