mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
Update cpuid_main.c
This commit is contained in:
parent
6f8449d88e
commit
a9fe7b6aca
1 changed files with 7 additions and 1 deletions
|
@ -38,7 +38,13 @@
|
|||
|
||||
/* Implementation: */
|
||||
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ == 201112L
|
||||
_Thread_local int _libcpiud_errno = ERR_OK;
|
||||
#elif defined(__GNUC__) // Also works for clang
|
||||
__thread int _libcpiud_errno = ERR_OK;
|
||||
#else
|
||||
static int _libcpiud_errno = ERR_OK;
|
||||
#endif
|
||||
|
||||
int set_error(cpu_error_t err)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue