X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos.hpp;h=cc72a0ea5b288184ffeb1759894344d2f5f5de3a;hb=c748fbcb434374ec13e14cc837ade7c581789e0c;hp=02625c2ad4f21808c4e9f3f96f62218884dbb83a;hpb=559d5349e8039871ff14509a26c54c980c8e2cc7;p=apitrace diff --git a/common/os.hpp b/common/os.hpp index 02625c2..cc72a0e 100644 --- a/common/os.hpp +++ b/common/os.hpp @@ -33,6 +33,7 @@ #include #include #include +#include #ifdef _WIN32 #ifndef snprintf @@ -41,24 +42,10 @@ #ifndef vsnprintf #define vsnprintf _vsnprintf #endif -#define PATH_SEP '\\' -#else /* !_WIN32 */ -#define PATH_SEP '/' #endif /* !_WIN32 */ -#ifndef PATH_MAX -#define PATH_MAX 1024 -#endif - namespace os { -void acquireMutex(void); - -void releaseMutex(void); - -bool getProcessName(char *str, size_t size); -bool getCurrentDir(char *str, size_t size); - void log(const char *format, ...) #ifdef __GNUC__ __attribute__ ((format (printf, 1, 2))) @@ -83,11 +70,6 @@ void log(const char *format, ...) #endif #endif -/** - * Get the current time in microseconds from an unknown base. - */ -long long getTime(void); - void abort(void); void setExceptionCallback(void (*callback)(void));