mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix caps; use rand() on win32
This commit is contained in:
parent
a07b388e7a
commit
09b8306028
1 changed files with 6 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
#include "xwords4.h"
|
||||
#include <commctrl.h>
|
||||
#include <winuser.h>
|
||||
#include <Winsock.h>
|
||||
#include <winsock.h>
|
||||
|
||||
/* #include <stddef.h> */
|
||||
/* #include <stdio.h> */
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue