Mercurial > dwindows
comparison os2/dw.c @ 2586:da058319f717
OS/2: HTIMER alread defined, just set HTIMER_TYPEDEFED.
Use HTIMER internaly instead of int.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 24 May 2021 01:48:27 +0000 |
parents | 2acc7ba5dea0 |
children | ac51cbdcfbe5 |
comparison
equal
deleted
inserted
replaced
2585:d59d579dc6ec | 2586:da058319f717 |
---|---|
13527 */ | 13527 */ |
13528 HTIMER API dw_timer_connect(int interval, void *sigfunc, void *data) | 13528 HTIMER API dw_timer_connect(int interval, void *sigfunc, void *data) |
13529 { | 13529 { |
13530 if(sigfunc) | 13530 if(sigfunc) |
13531 { | 13531 { |
13532 int timerid = WinStartTimer(dwhab, NULLHANDLE, 0, interval); | 13532 HTIMER timerid = WinStartTimer(dwhab, NULLHANDLE, 0, interval); |
13533 | 13533 |
13534 if(timerid) | 13534 if(timerid) |
13535 { | 13535 { |
13536 _new_signal(WM_TIMER, NULLHANDLE, timerid, sigfunc, NULL, data); | 13536 _new_signal(WM_TIMER, NULLHANDLE, timerid, sigfunc, NULL, data); |
13537 return timerid; | 13537 return timerid; |