WIN32 is defined also on WinCE anyway.
/*****************************************************************************
* Basic types definitions
*****************************************************************************/
-#if defined( WIN32 ) || defined( UNDER_CE )
+#if defined( WIN32 )
# include <malloc.h>
# ifndef PATH_MAX
# define PATH_MAX MAX_PATH
/*****************************************************************************
* OS-specific headers and thread types
*****************************************************************************/
-#if defined( WIN32 ) || defined( UNDER_CE )
+#if defined( WIN32 )
# include <windows.h>
#endif
/* Stuff defined in src/extras/libc.c */
-#if defined(WIN32) || defined(UNDER_CE)
+#if defined(WIN32)
/* win32, cl and icl support */
# if defined( _MSC_VER ) || !defined( __MINGW32__ )
# define __attribute__(x)
#include "vlc_main.h"
#include "vlc_configuration.h"
-#if defined( WIN32 ) || defined( UNDER_CE ) || defined( __SYMBIAN32__ ) || defined( __OS2__ )
+#if defined( WIN32 ) || defined( __SYMBIAN32__ ) || defined( __OS2__ )
# define DIR_SEP_CHAR '\\'
# define DIR_SEP "\\"
# define PATH_SEP_CHAR ';'
# define VLC_THREAD_PRIORITY_OUTPUT 15
# define VLC_THREAD_PRIORITY_HIGHEST 20
-#elif defined(WIN32) || defined(UNDER_CE)
+#elif defined(WIN32)
/* Define different priorities for WinNT/2K/XP and Win9x/Me */
# define VLC_THREAD_PRIORITY_LOW 0
# define VLC_THREAD_PRIORITY_INPUT \
if( !psz_path )
return VLC_ENOMEM;
-#if defined(WIN32) || defined (UNDER_CE)
+#if defined(WIN32)
wchar_t *wpath = ToWide( psz_path );
if( wpath == NULL )
{
return VLC_EGENERIC;
}
-#if defined(WIN32) || defined (UNDER_CE)
+#if defined(WIN32)
wchar_t *wpath = ToWide( p_export->psz_file );
if( wpath == NULL )
return VLC_EGENERIC;
* so PATH_MAX-2 is the bigest we can have */
if( i_len > PATH_MAX - 2 )
i_len = PATH_MAX - 2;
-#if defined(WIN32) || defined(UNDER_CE) || defined(__OS2__)
+#if defined(WIN32) || defined(__OS2__)
if( (i_len > 0) && path[i_len] != '\\' )
path[i_len] = '\\';
#else
#define OSD_CFG "osdmenu-"
-#if defined( WIN32 ) || defined( UNDER_CE )
+#if defined( WIN32 )
#define OSD_DEFAULT_CFG "osdmenu/default.cfg"
#else
#define OSD_DEFAULT_CFG PKGDATADIR"/osdmenu/default.cfg"
}
/* check if the client is to be set to dead */
-#if defined( WIN32 ) || defined( UNDER_CE )
+#if defined( WIN32 )
if( ( i_len < 0 && WSAGetLastError() != WSAEWOULDBLOCK ) || ( i_len == 0 ) )
#else
if( ( i_len < 0 && errno != EAGAIN ) || ( i_len == 0 ) )
}
else
{
-#if defined( WIN32 ) || defined( UNDER_CE )
+#if defined( WIN32 )
if( ( i_len < 0 && WSAGetLastError() != WSAEWOULDBLOCK ) || ( i_len == 0 ) )
#else
if( ( i_len < 0 && errno != EAGAIN ) || ( i_len == 0 ) )
# define INADDR_NONE 0xFFFFFFFF
#endif
-#if defined(WIN32) || defined(UNDER_CE)
+#if defined(WIN32)
# undef EAFNOSUPPORT
# define EAFNOSUPPORT WSAEAFNOSUPPORT
#endif
setsockopt (fd, IPPROTO_IPV6, IPV6_V6ONLY, &(int){ 1 }, sizeof (int));
#endif
-#if defined (WIN32) || defined (UNDER_CE)
+#if defined (WIN32)
# ifndef IPV6_PROTECTION_LEVEL
# warning Please update your C library headers.
# define IPV6_PROTECTION_LEVEL 23
}
/* Bind the socket */
-#if defined (WIN32) || defined (UNDER_CE)
+#if defined (WIN32)
/*
* Under Win32 and for multicasting, we bind to INADDR_ANY.
* This is of course a severe bug, since the socket would logically
if (bind (fd, ptr->ai_addr, ptr->ai_addrlen))
{
net_Close (fd);
-#if !defined(WIN32) && !defined(UNDER_CE)
+#if !defined(WIN32)
fd = rootwrap_bind (ptr->ai_family, ptr->ai_socktype,
ptr->ai_protocol,
ptr->ai_addr, ptr->ai_addrlen);
{
assert (p_this->b_die);
msg_Dbg (p_this, "socket %d polling interrupted", fd);
-#if defined(WIN32) || defined(UNDER_CE)
+#if defined(WIN32)
WSASetLastError (WSAEINTR);
#else
errno = EINTR;
assert (ufd[0].revents);
ssize_t n;
-#if defined(WIN32) || defined(UNDER_CE)
+#if defined(WIN32)
int error;
#endif
if (vs != NULL)
{
int canc = vlc_savecancel ();
n = vs->pf_recv (vs->p_sys, p_buf, i_buflen);
-#if defined(WIN32) || defined(UNDER_CE)
+#if defined(WIN32)
/* We must read last error immediately, because vlc_restorecancel()
* access thread local storage, and TlsGetValue() will call
* SetLastError() to indicate that the function succeeded, thus
if (n == -1)
{
-#if defined(WIN32) || defined(UNDER_CE)
+#if defined(WIN32)
switch (error)
{
case WSAEWOULDBLOCK:
#endif
#include <vlc_network.h>
-#if defined (WIN32) || defined (UNDER_CE)
+#if defined (WIN32)
# undef EINPROGRESS
# define EINPROGRESS WSAEWOULDBLOCK
# undef EWOULDBLOCK
(void *)&(int){ 0x80000 }, sizeof (int));
#endif
-#if defined (WIN32) || defined (UNDER_CE)
+#if defined (WIN32)
if (net_SockAddrIsMulticast (ptr->ai_addr, ptr->ai_addrlen)
&& (sizeof (struct sockaddr_storage) >= ptr->ai_addrlen))
{
break;
}
-#if defined( WIN32 ) || defined( UNDER_CE )
+#if defined( WIN32 )
if( WSAGetLastError () == WSAENETUNREACH )
#else
if( errno == ENETUNREACH )
psz_parser++;
}
}
-#if defined( WIN32 ) || defined( UNDER_CE ) || defined( __OS2__ )
+#if defined( WIN32 ) || defined( __OS2__ )
if( psz_parser - psz_dup == 1 )
{
/* msg_Warn( p_sout, "drive letter %c: found in source string",