targets/Win32/plc_Win32_main.c
branchwxPython4
changeset 3738 9ce94d0d3764
parent 3731 549763a28934
child 3850 722846bd6680
equal deleted inserted replaced
3730:87dac789bdaf 3738:9ce94d0d3764
    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