1
0
Fork 0
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:
alexey-milovidov 2020-05-11 00:26:23 +03:00 committed by GitHub
parent 6f8449d88e
commit a9fe7b6aca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,13 @@
/* Implementation: */ /* Implementation: */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ == 201112L
_Thread_local int _libcpiud_errno = ERR_OK; _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) int set_error(cpu_error_t err)
{ {