time.h: Don't include pthread_time.h when we are compiling winpthreads.

git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@4741 4407c894-4637-0410-b4f5-ada5f102cad1
This commit is contained in:
Ozkan Sezer 2012-01-17 12:35:51 +00:00
parent 730131928e
commit 910f819028
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-01-17 Ozkan Sezer <sezeroz@gmail.com>
* time.h: Don't include pthread_time.h when we are compiling
winpthreads.
2012-01-15 Jonathan Yong <jon_y@users.sourceforge.net> 2012-01-15 Jonathan Yong <jon_y@users.sourceforge.net>
* sec_api/string_s.h(strcat_s): Use CRT secure helper macro. * sec_api/string_s.h(strcat_s): Use CRT secure helper macro.

View File

@ -279,8 +279,9 @@ struct timezone {
/* POSIX 2008 says clock_gettime and timespec are defined in time.h header, /* POSIX 2008 says clock_gettime and timespec are defined in time.h header,
but other systems - like Linux, Solaris, etc - tend to declare such but other systems - like Linux, Solaris, etc - tend to declare such
recent extensions only if the following guards are met. */ recent extensions only if the following guards are met. */
#if (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \ #if !defined(IN_WINPTHREAD) && \
(_POSIX_C_SOURCE > 2) || defined(__EXTENSIONS__) ((!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
(_POSIX_C_SOURCE > 2) || defined(__EXTENSIONS__))
#include <pthread_time.h> #include <pthread_time.h>
#endif #endif