* include/cygwin/types.h: Define pthread stuff only if _POSIX_THREADS

is defined.
This commit is contained in:
Corinna Vinschen
2002-05-22 10:33:39 +00:00
parent 5bb52de4e2
commit 36f86a5537
2 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,7 @@ typedef __gid16_t gid_t;
#endif
#if !defined(__INSIDE_CYGWIN__) || !defined(__cplusplus)
#if defined(_POSIX_THREADS)
typedef void *pthread_t;
typedef void *pthread_mutex_t;
@ -87,6 +88,7 @@ typedef class pthread_rwlockattr *pthread_rwlockattr_t;
/* semaphores types */
typedef class semaphore *sem_t;
#endif /* defined(_POSIX_THREADS) */
#endif /* __INSIDE_CYGWIN__ */
#endif /* _CYGWIN_TYPES_H */