From 09b8306028d4e03eeae0624bb969dbff55a1bd62 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 27 Nov 2005 20:09:15 +0000 Subject: [PATCH] fix caps; use rand() on win32 --- wince/xptypes.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wince/xptypes.h b/wince/xptypes.h index 4aaa84c64..1761a72c4 100755 --- a/wince/xptypes.h +++ b/wince/xptypes.h @@ -25,7 +25,7 @@ #include "xwords4.h" #include #include -#include +#include /* #include */ /* #include */ @@ -54,7 +54,11 @@ typedef XP_U32 XP_Time; #define XP_CR "\015\012" /* 'Doze expects a carraige return followed by a linefeed */ -#define XP_RANDOM() Random() +#if defined TARGET_OS_WINCE +# define XP_RANDOM() Random() +#elif defined TARGET_OS_WIN32 +# define XP_RANDOM() rand() +#endif #ifdef MEM_DEBUG # define XP_PLATMALLOC(nbytes) malloc(nbytes)