mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-17 18:12:01 +01:00
Helps to compile platforms too before checking in...
This commit is contained in:
parent
46f72de960
commit
53b27c96c9
3 changed files with 5 additions and 8 deletions
|
@ -3871,7 +3871,7 @@ palm_util_setTimer( XW_UtilCtxt* uc, XWTimerReason why,
|
|||
} else if ( why == TIMER_TIMERTICK ) {
|
||||
now += SysTicksPerSecond();
|
||||
#if defined XWFEATURE_RELAY || defined COMMS_HEARTBEAT
|
||||
} else if ( why == TIMER_HEARTBEAT ) {
|
||||
} else if ( why == TIMER_COMMS ) {
|
||||
now += (secsFromNow * SysTicksPerSecond());
|
||||
#endif
|
||||
#ifdef XWFEATURE_BLUETOOTH
|
||||
|
|
|
@ -74,12 +74,9 @@ enum { XWRELAY_NONE /* 0 is an illegal value */
|
|||
, XWRELAY_CONNECTDENIED
|
||||
/* The relay says go away. Format: reason code: 1 */
|
||||
|
||||
#ifdef RELAY_HEARTBEAT
|
||||
, XWRELAY_HEARTBEAT
|
||||
/* Sent in either direction. Format: cookieID: 2; srcID: 1 */
|
||||
#else
|
||||
, _XWRELAY_HEARTBEAT /* don't use this */
|
||||
#endif
|
||||
|
||||
, XWRELAY_MSG_FROMRELAY
|
||||
/* Sent from relay to device. Format: cookieID: 2; src_hostID: 1;
|
||||
dest_hostID: 1; data <len-headerLen> */
|
||||
|
|
|
@ -2014,7 +2014,7 @@ checkFireLateKeyTimer( CEAppGlobals* globals )
|
|||
XP_Bool drop = XP_FALSE;
|
||||
XWTimerReason whys[] = { TIMER_PENDOWN, TIMER_TIMERTICK
|
||||
#if defined XWFEATURE_RELAY || defined COMMS_HEARTBEAT
|
||||
, TIMER_HEARTBEAT
|
||||
, TIMER_COMMS
|
||||
#endif
|
||||
};
|
||||
XP_U32 now = GetCurrentTime();
|
||||
|
@ -2477,7 +2477,7 @@ WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
why = (XWTimerReason)wParam;
|
||||
if ( why == TIMER_PENDOWN || why == TIMER_TIMERTICK
|
||||
#if defined XWFEATURE_RELAY || defined COMMS_HEARTBEAT
|
||||
|| why == TIMER_HEARTBEAT
|
||||
|| why == TIMER_COMMS
|
||||
#endif
|
||||
) {
|
||||
XP_ASSERT( why < NUM_TIMERS_PLUS_ONE );
|
||||
|
@ -3185,7 +3185,7 @@ ce_util_setTimer( XW_UtilCtxt* uc, XWTimerReason why,
|
|||
howLong = 1000; /* 1 second */
|
||||
break;
|
||||
#if defined XWFEATURE_RELAY || defined COMMS_HEARTBEAT
|
||||
case TIMER_HEARTBEAT:
|
||||
case TIMER_COMMS:
|
||||
howLong = when * 1000;
|
||||
break;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue