From c2d00ee2ae232f9fc0aff5ad0faa044d050bb1b5 Mon Sep 17 00:00:00 2001 From: ehouse Date: Fri, 6 Mar 2009 04:53:56 +0000 Subject: [PATCH] cleanup for new compiler: -D option, winsock2.h, fix warning --- wince/Makefile | 1 + wince/cemain.c | 2 +- wince/xptypes.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wince/Makefile b/wince/Makefile index 9b0792e6e..aebdeb094 100644 --- a/wince/Makefile +++ b/wince/Makefile @@ -66,6 +66,7 @@ endif STANDALONE = -DPREV_WAS_STANDALONE_ONLY COLOR_SEL = -DMY_COLOR_SEL CFLAGS += -D_WIN32_WCE=0x0400 -D_WIN32_IE=0x0400 -DUNDER_CE \ + -D__USE_W32_SOCKETS \ $(STANDALONE) $(USE_RAW_MINGW) -DDRAW_LINK_DIRECT \ -DXWFEATURE_TURNCHANGENOTIFY \ -fdollars-in-identifiers -D__W32API_USE_DLLIMPORT__ diff --git a/wince/cemain.c b/wince/cemain.c index 0b8a8ab00..c638440ca 100755 --- a/wince/cemain.c +++ b/wince/cemain.c @@ -2838,7 +2838,7 @@ got_data_proc( XP_U8* data, XP_U16 len, void* closure ) #ifdef COMMS_HEARTBEAT static void -ce_reset_proc( void* closure ) +ce_reset_proc( void* XP_UNUSED_STANDALONE(closure) ) { LOG_FUNC(); } diff --git a/wince/xptypes.h b/wince/xptypes.h index 6f21a8107..731d920b9 100755 --- a/wince/xptypes.h +++ b/wince/xptypes.h @@ -25,7 +25,7 @@ #include "xwords4.h" #include #include -#include +#include typedef unsigned char XP_U8; typedef signed char XP_S8;