Commit bfbe106f authored by Gildas Bazin's avatar Gildas Bazin

* ALL: WinCE EVC compilation fixes.

parent f3071f22
...@@ -93,6 +93,18 @@ ...@@ -93,6 +93,18 @@
/* Simple version string */ /* Simple version string */
#define VERSION_MESSAGE "@VERSION@ @CODENAME@" #define VERSION_MESSAGE "@VERSION@ @CODENAME@"
/* compiler */
#define VLC_COMPILER "Microsoft eMbedded Visual C++"
/* user who ran configure */
#define VLC_COMPILE_BY "user"
/* domain of the host which ran configure */
#define VLC_COMPILE_DOMAIN "videolan.org"
/* host which ran configure */
#define VLC_COMPILE_HOST "machine"
/* Define as `__inline' if that's what the C compiler calls it, or to nothing /* Define as `__inline' if that's what the C compiler calls it, or to nothing
if it is not supported. */ if it is not supported. */
#define inline __inline #define inline __inline
......
...@@ -30,8 +30,14 @@ ...@@ -30,8 +30,14 @@
# if defined(UNDER_CE) && defined(sockaddr_storage) # if defined(UNDER_CE) && defined(sockaddr_storage)
# undef sockaddr_storage # undef sockaddr_storage
# endif # endif
# if defined(UNDER_CE)
# define HAVE_STRUCT_ADDRINFO
# else
# include <io.h>
# endif
# include <winsock2.h> # include <winsock2.h>
# include <ws2tcpip.h> # include <ws2tcpip.h>
# define ENETUNREACH WSAENETUNREACH
#else #else
# if HAVE_SYS_SOCKET_H # if HAVE_SYS_SOCKET_H
# include <sys/socket.h> # include <sys/socket.h>
......
...@@ -546,7 +546,7 @@ static int64_t GCD( int64_t a, int64_t b ) ...@@ -546,7 +546,7 @@ static int64_t GCD( int64_t a, int64_t b )
} }
/* Dynamic array handling: realloc array, move data, increment position */ /* Dynamic array handling: realloc array, move data, increment position */
#if defined( _MSC_VER ) && _MSC_VER < 1300 #if defined( _MSC_VER ) && _MSC_VER < 1300 && !defined( UNDER_CE )
# define VLCCVP (void**) /* Work-around for broken compiler */ # define VLCCVP (void**) /* Work-around for broken compiler */
#else #else
# define VLCCVP # define VLCCVP
......
...@@ -46,11 +46,12 @@ ...@@ -46,11 +46,12 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
# include <sys/time.h> # include <sys/time.h>
#endif #endif
#include <sys/types.h> #ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#define RAISE( c, m ) exception->code = c; \ #define RAISE( c, m ) exception->code = c; \
exception->message = strdup(m); exception->message = strdup(m);
......
...@@ -46,11 +46,12 @@ ...@@ -46,11 +46,12 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
# include <sys/time.h> # include <sys/time.h>
#endif #endif
#include <sys/types.h> #ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#define RAISE( c, m ) exception->code = c; \ #define RAISE( c, m ) exception->code = c; \
exception->message = strdup(m); exception->message = strdup(m);
......
...@@ -46,11 +46,12 @@ ...@@ -46,11 +46,12 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
# include <sys/time.h> # include <sys/time.h>
#endif #endif
#include <sys/types.h> #ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#define RAISE( c, m ) exception->code = c; \ #define RAISE( c, m ) exception->code = c; \
exception->message = strdup(m); exception->message = strdup(m);
......
...@@ -27,30 +27,17 @@ ...@@ -27,30 +27,17 @@
#include <stddef.h> /* size_t */ #include <stddef.h> /* size_t */
#include <string.h> /* strncpy(), strlen(), memcpy(), memset(), strchr() */ #include <string.h> /* strncpy(), strlen(), memcpy(), memset(), strchr() */
#include <stdlib.h> /* malloc(), free(), strtoul() */ #include <stdlib.h> /* malloc(), free(), strtoul() */
#include <sys/types.h> #include <errno.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_ARPA_INET_H #ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h> # include <arpa/inet.h>
#endif #endif
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#include <errno.h>
#if defined( WIN32 ) || defined( UNDER_CE )
# if defined(UNDER_CE) && defined(sockaddr_storage)
# undef sockaddr_storage
# endif
# include <winsock2.h>
# include <ws2tcpip.h>
#else
# include <sys/socket.h>
# include <netinet/in.h> # include <netinet/in.h>
# ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
# endif
# include <netdb.h>
#endif #endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
......
...@@ -33,28 +33,9 @@ ...@@ -33,28 +33,9 @@
#ifdef HAVE_FCNTL_H #ifdef HAVE_FCNTL_H
# include <fcntl.h> # include <fcntl.h>
#endif #endif
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
# include <sys/time.h> # include <sys/time.h>
#endif #endif
#if defined( WIN32 ) || defined( UNDER_CE )
# if defined(UNDER_CE) && defined(sockaddr_storage)
# undef sockaddr_storage
# endif
# include <io.h>
# include <winsock2.h>
# include <ws2tcpip.h>
# define ENETUNREACH WSAENETUNREACH
#else
# include <sys/socket.h>
# include <netinet/in.h>
# ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
# endif
# include <netdb.h>
#endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
......
...@@ -31,9 +31,7 @@ ...@@ -31,9 +31,7 @@
#include "vlc_acl.h" #include "vlc_acl.h"
#ifdef HAVE_ERRNO_H
#include <errno.h> #include <errno.h>
#endif
#include "network.h" #include "network.h"
......
...@@ -34,18 +34,6 @@ ...@@ -34,18 +34,6 @@
#include <vlc/sout.h> #include <vlc/sout.h>
#include "network.h" #include "network.h"
#if defined( WIN32 ) || defined( UNDER_CE )
# if defined(UNDER_CE) && defined(sockaddr_storage)
# undef sockaddr_storage
# endif
# include <winsock2.h>
# include <ws2tcpip.h>
#else
# include <netdb.h>
# ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
# endif
#endif
#include "charset.h" #include "charset.h"
/* SAP is always on that port */ /* SAP is always on that port */
......
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