Also the check #if __STDC_VERSION__ >= 201112 is not meaningful,
since presumably Celero is being compiled with a C++ compiler, so it
has been removed.
In file src/Memory.cpp:
Added include for <cstring> so that strlen and strncmp are
defined for Apple environment.
In file include/celero/ThreadLocal.h:
thread_local
is a C++ keyword so using an #ifdef check for its existence is not reliable. Instead, check for C++11 support to determine ifthread_local
is already defined. See here https://stackoverflow.com/questions/5047971/how-do-i-check-for-c11-support.#if __STDC_VERSION__ >= 201112
is not meaningful, since presumably Celero is being compiled with a C++ compiler, so it has been removed.In file src/Memory.cpp:
<cstring>
so thatstrlen
andstrncmp
are defined for Apple environment.Fixes #140