X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos.hpp;h=985ff6b9ccb84e8a291941017f76f4f9f7c873dc;hb=cd442807d7b93d91c1b3456aa7dfbf996c1cadef;hp=6a3b8c82f33840929b688de60ceb6f69fe9901b7;hpb=46b8284dcbcda773ecc34f510b5e288e4e5cbda4;p=apitrace diff --git a/common/os.hpp b/common/os.hpp index 6a3b8c8..985ff6b 100644 --- a/common/os.hpp +++ b/common/os.hpp @@ -42,14 +42,13 @@ #ifndef vsnprintf #define vsnprintf _vsnprintf #endif +#ifndef strcasecmp +#define strcasecmp stricmp +#endif #endif /* !_WIN32 */ namespace os { -void acquireMutex(void); - -void releaseMutex(void); - void log(const char *format, ...) #ifdef __GNUC__ __attribute__ ((format (printf, 1, 2))) @@ -75,10 +74,11 @@ void log(const char *format, ...) #endif /** - * Get the current time in microseconds from an unknown base. + * Exit immediately. + * + * This should be called only from the wrappers, when there is no safe way of + * failing gracefully. */ -long long getTime(void); - void abort(void); void setExceptionCallback(void (*callback)(void));