]> git.sesse.net Git - vlc/commitdiff
* ALL: WinCE EVC compilation fixes.
authorGildas Bazin <gbazin@videolan.org>
Thu, 22 Sep 2005 20:14:20 +0000 (20:14 +0000)
committerGildas Bazin <gbazin@videolan.org>
Thu, 22 Sep 2005 20:14:20 +0000 (20:14 +0000)
evc/config.h.in
include/network.h
include/vlc_common.h
src/control/audio_video.c
src/control/core.c
src/control/util.c
src/misc/getaddrinfo.c
src/misc/net.c
src/stream_output/acl.c
src/stream_output/sap.c

index 716915019165c80874c735fe2735496658fae3b3..f74a8d43fec1c284205733c30ff3a9ff81c49591 100644 (file)
 /* Simple version string */
 #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
    if it is not supported. */
 #define inline __inline
index 81626f453320c94cce884fedf93b617e378bd7a0..d484ba6bcb4fd995b4c92c3f29d7b9e9aeae7130 100644 (file)
 #   if defined(UNDER_CE) && defined(sockaddr_storage)
 #       undef sockaddr_storage
 #   endif
+#   if defined(UNDER_CE)
+#       define HAVE_STRUCT_ADDRINFO
+#   else
+#       include <io.h>
+#   endif
 #   include <winsock2.h>
 #   include <ws2tcpip.h>
+#   define ENETUNREACH WSAENETUNREACH
 #else
 #   if HAVE_SYS_SOCKET_H
 #      include <sys/socket.h>
index 586da1a5779baea95e1cc42326f8411045c6ff17..abecaea0092f23685e52423533581ea0f53260c1 100644 (file)
@@ -546,7 +546,7 @@ static int64_t GCD( int64_t a, int64_t b )
 }
 
 /* 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 */
 #else
 #   define VLCCVP
index 5b9b822101bc0e93e36aa593affea367a51ecade..2ad53adb9a935ce937a6249d769e9c5da53670d7 100644 (file)
 #ifdef HAVE_UNISTD_H
 #    include <unistd.h>
 #endif
-
 #ifdef HAVE_SYS_TIME_H
 #    include <sys/time.h>
 #endif
-#include <sys/types.h>
+#ifdef HAVE_SYS_TYPES_H
+#    include <sys/types.h>
+#endif
 
 #define RAISE( c, m )  exception->code = c; \
                        exception->message = strdup(m);
index 3abb0a52e3b1c6629daf88a0ab38e56387d149b1..7185554c723f5e5760a8e52c394d7a9c5d2c17af 100644 (file)
 #ifdef HAVE_UNISTD_H
 #    include <unistd.h>
 #endif
-
 #ifdef HAVE_SYS_TIME_H
 #    include <sys/time.h>
 #endif
-#include <sys/types.h>
+#ifdef HAVE_SYS_TYPES_H
+#    include <sys/types.h>
+#endif
 
 #define RAISE( c, m )  exception->code = c; \
                        exception->message = strdup(m);
index ab682834caa3160079a064e91f1445342b79f9f3..93e64147ac504274ece4e8371a4580a5c558af70 100644 (file)
 #ifdef HAVE_UNISTD_H
 #    include <unistd.h>
 #endif
-
 #ifdef HAVE_SYS_TIME_H
 #    include <sys/time.h>
 #endif
-#include <sys/types.h>
+#ifdef HAVE_SYS_TYPES_H
+#    include <sys/types.h>
+#endif
 
 #define RAISE( c, m )  exception->code = c; \
                        exception->message = strdup(m);
index 6002a4ec5961ce9b60f76c662d5939087d3be5e8..25504e39f8801a42aaf3215b2b436d2f345bad8e 100644 (file)
 #include <stddef.h> /* size_t */
 #include <string.h> /* strncpy(), strlen(), memcpy(), memset(), strchr() */
 #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
-# include <arpa/inet.h>
+#   include <arpa/inet.h>
 #endif
 #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>
-#   ifdef HAVE_ARPA_INET_H
-#       include <arpa/inet.h>
-#   endif
-#   include <netdb.h>
 #endif
-
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
 #endif
index 34f96eb6e52f99bd8af98ac1ef7f970a58246229..a5b0820cb669e805d7c19db7e3308e41790703bc 100644 (file)
 #ifdef HAVE_FCNTL_H
 #   include <fcntl.h>
 #endif
-
 #ifdef HAVE_SYS_TIME_H
 #    include <sys/time.h>
 #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
 #   include <unistd.h>
 #endif
index f8040df8b8b403022612054ccf262c8bcf460f3e..9a957d1a7a50df82390830c5e1859d9609763c5c 100644 (file)
@@ -31,9 +31,7 @@
 
 #include "vlc_acl.h"
 
-#ifdef HAVE_ERRNO_H
 #include <errno.h>
-#endif
 
 #include "network.h"
 
index ddc7ca5b13b45acc8fab0cc8efba4a8bb227917c..15ce59259a904dd79dd8c2d49006a08139abbe99 100644 (file)
 #include <vlc/sout.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"
 
 /* SAP is always on that port */