|
@@ -185,6 +185,16 @@ int os_mkdir(const char *path)
|
|
|
return MKDIR_SUCCESS;
|
|
|
}
|
|
|
|
|
|
+long atomic_inc_long(volatile long *val)
|
|
|
+{
|
|
|
+ return InterlockedIncrement(val);
|
|
|
+}
|
|
|
+
|
|
|
+long atomic_dec_long(volatile long *val)
|
|
|
+{
|
|
|
+ return InterlockedDecrement(val);
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
BOOL WINAPI DllMain(HINSTANCE hinst_dll, DWORD reason, LPVOID reserved)
|
|
|
{
|
|
@@ -219,4 +229,3 @@ BOOL WINAPI DllMain(HINSTANCE hinst_dll, DWORD reason, LPVOID reserved)
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
-
|