Commit a5b8b24f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove redundant UNDER_CE checks

WIN32 is defined also on WinCE anyway.
parent 6bad0899
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
/***************************************************************************** /*****************************************************************************
* Basic types definitions * Basic types definitions
*****************************************************************************/ *****************************************************************************/
#if defined( WIN32 ) || defined( UNDER_CE ) #if defined( WIN32 )
# include <malloc.h> # include <malloc.h>
# ifndef PATH_MAX # ifndef PATH_MAX
# define PATH_MAX MAX_PATH # define PATH_MAX MAX_PATH
...@@ -426,7 +426,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */ ...@@ -426,7 +426,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
/***************************************************************************** /*****************************************************************************
* OS-specific headers and thread types * OS-specific headers and thread types
*****************************************************************************/ *****************************************************************************/
#if defined( WIN32 ) || defined( UNDER_CE ) #if defined( WIN32 )
# include <windows.h> # include <windows.h>
#endif #endif
...@@ -783,7 +783,7 @@ static inline void SetQWLE (void *p, uint64_t qw) ...@@ -783,7 +783,7 @@ static inline void SetQWLE (void *p, uint64_t qw)
/* Stuff defined in src/extras/libc.c */ /* Stuff defined in src/extras/libc.c */
#if defined(WIN32) || defined(UNDER_CE) #if defined(WIN32)
/* win32, cl and icl support */ /* win32, cl and icl support */
# if defined( _MSC_VER ) || !defined( __MINGW32__ ) # if defined( _MSC_VER ) || !defined( __MINGW32__ )
# define __attribute__(x) # define __attribute__(x)
...@@ -937,7 +937,7 @@ VLC_API const char * VLC_Compiler( void ) VLC_USED; ...@@ -937,7 +937,7 @@ VLC_API const char * VLC_Compiler( void ) VLC_USED;
#include "vlc_main.h" #include "vlc_main.h"
#include "vlc_configuration.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_CHAR '\\'
# define DIR_SEP "\\" # define DIR_SEP "\\"
# define PATH_SEP_CHAR ';' # define PATH_SEP_CHAR ';'
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
# define VLC_THREAD_PRIORITY_OUTPUT 15 # define VLC_THREAD_PRIORITY_OUTPUT 15
# define VLC_THREAD_PRIORITY_HIGHEST 20 # 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 different priorities for WinNT/2K/XP and Win9x/Me */
# define VLC_THREAD_PRIORITY_LOW 0 # define VLC_THREAD_PRIORITY_LOW 0
# define VLC_THREAD_PRIORITY_INPUT \ # define VLC_THREAD_PRIORITY_INPUT \
......
...@@ -533,7 +533,7 @@ static int ReadMeta( vlc_object_t* p_this) ...@@ -533,7 +533,7 @@ static int ReadMeta( vlc_object_t* p_this)
if( !psz_path ) if( !psz_path )
return VLC_ENOMEM; return VLC_ENOMEM;
#if defined(WIN32) || defined (UNDER_CE) #if defined(WIN32)
wchar_t *wpath = ToWide( psz_path ); wchar_t *wpath = ToWide( psz_path );
if( wpath == NULL ) if( wpath == NULL )
{ {
...@@ -826,7 +826,7 @@ static int WriteMeta( vlc_object_t *p_this ) ...@@ -826,7 +826,7 @@ static int WriteMeta( vlc_object_t *p_this )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
#if defined(WIN32) || defined (UNDER_CE) #if defined(WIN32)
wchar_t *wpath = ToWide( p_export->psz_file ); wchar_t *wpath = ToWide( p_export->psz_file );
if( wpath == NULL ) if( wpath == NULL )
return VLC_EGENERIC; return VLC_EGENERIC;
......
...@@ -93,7 +93,7 @@ int osd_parser_simpleOpen( vlc_object_t *p_this ) ...@@ -93,7 +93,7 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
* so PATH_MAX-2 is the bigest we can have */ * so PATH_MAX-2 is the bigest we can have */
if( i_len > PATH_MAX - 2 ) if( i_len > PATH_MAX - 2 )
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] != '\\' ) if( (i_len > 0) && path[i_len] != '\\' )
path[i_len] = '\\'; path[i_len] = '\\';
#else #else
......
...@@ -103,7 +103,7 @@ static int MouseEvent( filter_t *, ...@@ -103,7 +103,7 @@ static int MouseEvent( filter_t *,
#define OSD_CFG "osdmenu-" #define OSD_CFG "osdmenu-"
#if defined( WIN32 ) || defined( UNDER_CE ) #if defined( WIN32 )
#define OSD_DEFAULT_CFG "osdmenu/default.cfg" #define OSD_DEFAULT_CFG "osdmenu/default.cfg"
#else #else
#define OSD_DEFAULT_CFG PKGDATADIR"/osdmenu/default.cfg" #define OSD_DEFAULT_CFG PKGDATADIR"/osdmenu/default.cfg"
......
...@@ -1733,7 +1733,7 @@ static void httpd_ClientRecv( httpd_client_t *cl ) ...@@ -1733,7 +1733,7 @@ static void httpd_ClientRecv( httpd_client_t *cl )
} }
/* check if the client is to be set to dead */ /* 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 ) ) if( ( i_len < 0 && WSAGetLastError() != WSAEWOULDBLOCK ) || ( i_len == 0 ) )
#else #else
if( ( i_len < 0 && errno != EAGAIN ) || ( i_len == 0 ) ) if( ( i_len < 0 && errno != EAGAIN ) || ( i_len == 0 ) )
...@@ -1872,7 +1872,7 @@ static void httpd_ClientSend( httpd_client_t *cl ) ...@@ -1872,7 +1872,7 @@ static void httpd_ClientSend( httpd_client_t *cl )
} }
else else
{ {
#if defined( WIN32 ) || defined( UNDER_CE ) #if defined( WIN32 )
if( ( i_len < 0 && WSAGetLastError() != WSAEWOULDBLOCK ) || ( i_len == 0 ) ) if( ( i_len < 0 && WSAGetLastError() != WSAEWOULDBLOCK ) || ( i_len == 0 ) )
#else #else
if( ( i_len < 0 && errno != EAGAIN ) || ( i_len == 0 ) ) if( ( i_len < 0 && errno != EAGAIN ) || ( i_len == 0 ) )
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
# define INADDR_NONE 0xFFFFFFFF # define INADDR_NONE 0xFFFFFFFF
#endif #endif
#if defined(WIN32) || defined(UNDER_CE) #if defined(WIN32)
# undef EAFNOSUPPORT # undef EAFNOSUPPORT
# define EAFNOSUPPORT WSAEAFNOSUPPORT # define EAFNOSUPPORT WSAEAFNOSUPPORT
#endif #endif
...@@ -96,7 +96,7 @@ int net_Socket (vlc_object_t *p_this, int family, int socktype, ...@@ -96,7 +96,7 @@ int net_Socket (vlc_object_t *p_this, int family, int socktype,
setsockopt (fd, IPPROTO_IPV6, IPV6_V6ONLY, &(int){ 1 }, sizeof (int)); setsockopt (fd, IPPROTO_IPV6, IPV6_V6ONLY, &(int){ 1 }, sizeof (int));
#endif #endif
#if defined (WIN32) || defined (UNDER_CE) #if defined (WIN32)
# ifndef IPV6_PROTECTION_LEVEL # ifndef IPV6_PROTECTION_LEVEL
# warning Please update your C library headers. # warning Please update your C library headers.
# define IPV6_PROTECTION_LEVEL 23 # define IPV6_PROTECTION_LEVEL 23
...@@ -159,7 +159,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host, ...@@ -159,7 +159,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
} }
/* Bind the socket */ /* Bind the socket */
#if defined (WIN32) || defined (UNDER_CE) #if defined (WIN32)
/* /*
* Under Win32 and for multicasting, we bind to INADDR_ANY. * Under Win32 and for multicasting, we bind to INADDR_ANY.
* This is of course a severe bug, since the socket would logically * This is of course a severe bug, since the socket would logically
...@@ -183,7 +183,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host, ...@@ -183,7 +183,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
if (bind (fd, ptr->ai_addr, ptr->ai_addrlen)) if (bind (fd, ptr->ai_addr, ptr->ai_addrlen))
{ {
net_Close (fd); net_Close (fd);
#if !defined(WIN32) && !defined(UNDER_CE) #if !defined(WIN32)
fd = rootwrap_bind (ptr->ai_family, ptr->ai_socktype, fd = rootwrap_bind (ptr->ai_family, ptr->ai_socktype,
ptr->ai_protocol, ptr->ai_protocol,
ptr->ai_addr, ptr->ai_addrlen); ptr->ai_addr, ptr->ai_addrlen);
...@@ -290,7 +290,7 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs, ...@@ -290,7 +290,7 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
{ {
assert (p_this->b_die); assert (p_this->b_die);
msg_Dbg (p_this, "socket %d polling interrupted", fd); msg_Dbg (p_this, "socket %d polling interrupted", fd);
#if defined(WIN32) || defined(UNDER_CE) #if defined(WIN32)
WSASetLastError (WSAEINTR); WSASetLastError (WSAEINTR);
#else #else
errno = EINTR; errno = EINTR;
...@@ -302,14 +302,14 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs, ...@@ -302,14 +302,14 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
assert (ufd[0].revents); assert (ufd[0].revents);
ssize_t n; ssize_t n;
#if defined(WIN32) || defined(UNDER_CE) #if defined(WIN32)
int error; int error;
#endif #endif
if (vs != NULL) if (vs != NULL)
{ {
int canc = vlc_savecancel (); int canc = vlc_savecancel ();
n = vs->pf_recv (vs->p_sys, p_buf, i_buflen); 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() /* We must read last error immediately, because vlc_restorecancel()
* access thread local storage, and TlsGetValue() will call * access thread local storage, and TlsGetValue() will call
* SetLastError() to indicate that the function succeeded, thus * SetLastError() to indicate that the function succeeded, thus
...@@ -332,7 +332,7 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs, ...@@ -332,7 +332,7 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
if (n == -1) if (n == -1)
{ {
#if defined(WIN32) || defined(UNDER_CE) #if defined(WIN32)
switch (error) switch (error)
{ {
case WSAEWOULDBLOCK: case WSAEWOULDBLOCK:
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#endif #endif
#include <vlc_network.h> #include <vlc_network.h>
#if defined (WIN32) || defined (UNDER_CE) #if defined (WIN32)
# undef EINPROGRESS # undef EINPROGRESS
# define EINPROGRESS WSAEWOULDBLOCK # define EINPROGRESS WSAEWOULDBLOCK
# undef EWOULDBLOCK # undef EWOULDBLOCK
......
...@@ -110,7 +110,7 @@ static int net_SetupDgramSocket (vlc_object_t *p_obj, int fd, ...@@ -110,7 +110,7 @@ static int net_SetupDgramSocket (vlc_object_t *p_obj, int fd,
(void *)&(int){ 0x80000 }, sizeof (int)); (void *)&(int){ 0x80000 }, sizeof (int));
#endif #endif
#if defined (WIN32) || defined (UNDER_CE) #if defined (WIN32)
if (net_SockAddrIsMulticast (ptr->ai_addr, ptr->ai_addrlen) if (net_SockAddrIsMulticast (ptr->ai_addr, ptr->ai_addrlen)
&& (sizeof (struct sockaddr_storage) >= ptr->ai_addrlen)) && (sizeof (struct sockaddr_storage) >= ptr->ai_addrlen))
{ {
...@@ -559,7 +559,7 @@ int net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port, ...@@ -559,7 +559,7 @@ int net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
break; break;
} }
#if defined( WIN32 ) || defined( UNDER_CE ) #if defined( WIN32 )
if( WSAGetLastError () == WSAENETUNREACH ) if( WSAGetLastError () == WSAENETUNREACH )
#else #else
if( errno == ENETUNREACH ) if( errno == ENETUNREACH )
......
...@@ -620,7 +620,7 @@ static int mrl_Parse( mrl_t *p_mrl, const char *psz_mrl ) ...@@ -620,7 +620,7 @@ static int mrl_Parse( mrl_t *p_mrl, const char *psz_mrl )
psz_parser++; psz_parser++;
} }
} }
#if defined( WIN32 ) || defined( UNDER_CE ) || defined( __OS2__ ) #if defined( WIN32 ) || defined( __OS2__ )
if( psz_parser - psz_dup == 1 ) if( psz_parser - psz_dup == 1 )
{ {
/* msg_Warn( p_sout, "drive letter %c: found in source string", /* msg_Warn( p_sout, "drive letter %c: found in source string",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment