]> git.cworth.org Git - apitrace/blobdiff - common/os.hpp
Move mutex abstraction to os_thread.hpp.
[apitrace] / common / os.hpp
index 02625c2ad4f21808c4e9f3f96f62218884dbb83a..caf9dc3d2cc66e4243d819571beaf1082c7bd723 100644 (file)
@@ -33,6 +33,7 @@
 #include <stdlib.h>
 #include <stdarg.h>
 #include <stdio.h>
+#include <string.h>
 
 #ifdef _WIN32
 #ifndef snprintf
 #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)))