mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-12-19 06:47:40 +08:00
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:
parent
730131928e
commit
910f819028
@ -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.
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user