targets/Win32/plc_Win32_main.c
changeset 3731 549763a28934
parent 3296 3bcd5ec67521
child 3850 722846bd6680
equal deleted inserted replaced
3727:265fc8001d0a 3731:549763a28934
    80 #define maxval(a,b) ((a>b)?a:b)
    80 #define maxval(a,b) ((a>b)?a:b)
    81 int startPLC(int argc,char **argv)
    81 int startPLC(int argc,char **argv)
    82 {
    82 {
    83 	unsigned long thread_id = 0;
    83 	unsigned long thread_id = 0;
    84     BOOL tmp;
    84     BOOL tmp;
    85     setlocale(LC_NUMERIC, "C");
       
    86 
    85 
    87     debug_sem = CreateSemaphore(
    86     debug_sem = CreateSemaphore(
    88                             NULL,           // default security attributes
    87                             NULL,           // default security attributes
    89                             1,  			// initial count
    88                             1,  			// initial count
    90                             1,  			// maximum count
    89                             1,  			// maximum count