]> git.cworth.org Git - apitrace/blobdiff - common/os.hpp
Prevent infinite recursion with Steam's overlay.
[apitrace] / common / os.hpp
index cc72a0ea5b288184ffeb1759894344d2f5f5de3a..985ff6b9ccb84e8a291941017f76f4f9f7c873dc 100644 (file)
@@ -42,6 +42,9 @@
 #ifndef vsnprintf
 #define vsnprintf _vsnprintf
 #endif
+#ifndef strcasecmp
+#define strcasecmp stricmp
+#endif
 #endif /* !_WIN32 */
 
 namespace os {
@@ -70,6 +73,12 @@ void log(const char *format, ...)
   #endif
 #endif
 
+/**
+ * Exit immediately.
+ *
+ * This should be called only from the wrappers, when there is no safe way of
+ * failing gracefully.
+ */
 void abort(void);
 
 void setExceptionCallback(void (*callback)(void));