Updated TinyCThread.

This commit is contained in:
Camilla Berglund 2012-08-12 15:04:59 +02:00
parent 9e4bc36dd8
commit 14abb3c15d
2 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/* /* -*- mode: c; tab-width: 2; indent-tabs-mode: nil; -*-
Copyright (c) 2011 Marcus Geelnard Copyright (c) 2012 Marcus Geelnard
This software is provided 'as-is', without any express or implied This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages warranty. In no event will the authors be held liable for any damages

View File

@ -1,5 +1,5 @@
/* /* -*- mode: c; tab-width: 2; indent-tabs-mode: nil; -*-
Copyright (c) 2011 Marcus Geelnard Copyright (c) 2012 Marcus Geelnard
This software is provided 'as-is', without any express or implied This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages warranty. In no event will the authors be held liable for any damages
@ -32,7 +32,7 @@ freely, subject to the following restrictions:
* TinyCThread is a minimal, portable implementation of basic threading * TinyCThread is a minimal, portable implementation of basic threading
* classes for C. * classes for C.
* *
* They closely mimic the functionality and naming of the C1X standard, and * They closely mimic the functionality and naming of the C11 standard, and
* should be easily replaceable with the corresponding standard variants. * should be easily replaceable with the corresponding standard variants.
* *
* @section port_sec Portability * @section port_sec Portability
@ -101,8 +101,7 @@ freely, subject to the following restrictions:
* @hideinitializer * @hideinitializer
*/ */
/* FIXME: Check for a PROPER value of __STDC_VERSION__ to know if we have C1X or /* FIXME: Check for a PROPER value of __STDC_VERSION__ to know if we have C11 or */
not (the spec is still draft)... */
#if !(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201102L)) && !defined(_Thread_local) #if !(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201102L)) && !defined(_Thread_local)
#if defined(__GNUC__) || defined(__INTEL_COMPILER) || defined(__SUNPRO_CC) || defined(__IBMCPP__) #if defined(__GNUC__) || defined(__INTEL_COMPILER) || defined(__SUNPRO_CC) || defined(__IBMCPP__)
#define _Thread_local __thread #define _Thread_local __thread
@ -402,3 +401,4 @@ enum
int xtime_get(xtime *xt, int base); int xtime_get(xtime *xt, int base);
#endif /* _TINYTHREAD_H_ */ #endif /* _TINYTHREAD_H_ */