runtime/plc_Win32_main.c
changeset 203 cb9901076a21
parent 196 93d06827e31b
--- a/runtime/plc_Win32_main.c	Tue Aug 12 16:27:07 2008 +0200
+++ b/runtime/plc_Win32_main.c	Wed Aug 20 00:11:40 2008 +0200
@@ -3,7 +3,15 @@
 #include <time.h>
 #include <windows.h>
 
-int localcount = 0;
+long AtomicCompareExchange(long* atomicvar,long exchange, long compared)
+{
+    return InterlockedCompareExchange(atomicvar, exchange, compared);
+}
+
+//long AtomicExchange(long* atomicvar,long exchange)
+//{
+//    return InterlockedExchange(atomicvar, exchange);    
+//}
 
 struct _timeb timetmp;
 void PLC_GetTime(IEC_TIME *CURRENT_TIME)