summaryrefslogtreecommitdiff
path: root/win32/include/msvc
diff options
context:
space:
mode:
Diffstat (limited to 'win32/include/msvc')
-rw-r--r--win32/include/msvc/config.h113
-rw-r--r--win32/include/msvc/sys/time.h28
2 files changed, 97 insertions, 44 deletions
diff --git a/win32/include/msvc/config.h b/win32/include/msvc/config.h
index 886cf4762..2b44ff85c 100644
--- a/win32/include/msvc/config.h
+++ b/win32/include/msvc/config.h
@@ -1,34 +1,26 @@
/* config.h. Generated by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
-/* Adjusting for MSVS:
+/* Adjusting for MSVC from MinGW:
* NLS disabled
* x86 disabled
* inline defined to __inline
* HAVE_SYS_PARAM_H disabled
- * XINE_PLUGINDIR
- * XINE_FONTDIR
- * XINE_LOCALEDIR
* HAVE_DLFCN_H 1
- * HAVE_SETENV 1 (FIXME: into utils.c)
- * define ssize_t as __int64
+ * HAVE_ERRNO_H 1
+ * HAVE_FCNTL_H 1
+ * HAVE_ISOC99_PRAGMA 1
+ * HAVE_MEMCPY 1
+ * HAVE_STDBOOL_H
+ * HAVE_STDIO_H 1
+ * HAVE_VSNPRINTF 1
+ * HAVE_WIN32_CDROM 1
+ * X_DISPLAY_MISSING 1
+ * HAVE_MEMCPY 1
+ * Disable:
+ * esd, arts, alsa, gnome_vfs, png, sdl, speex, x11, theora
*/
-#if defined(WIN32)
-
-#include <windows.h>
-#include <stdio.h>
-#include <string.h>
-
-#define ssize_t __int64
-
-#ifndef PATH_MAX
-#define PATH_MAX MAX_PATH
-#endif
-
-#endif
-
-
#ifdef inline
/* the strange formatting below is needed to prevent config.status from rewriting it */
@@ -40,8 +32,11 @@
/* Define this if you're running PowerPC architecture */
/* #undef ARCH_PPC */
+/* Define this if you're running SPARC architecture */
+/* #undef ARCH_SPARC */
+
/* Define this if you're running x86 architecture */
-/* #define ARCH_X86 */
+/* #undef ARCH_X86 */
/* Define this if you're running x86 architecture */
/* #undef ARCH_X86_64 */
@@ -50,7 +45,7 @@
#define ATTRIBUTE_ALIGNED_MAX 64
/* compiler does lsbf in struct bitfields */
-#define BITFIELD_LSBF
+/* #undef BITFIELD_LSBF */
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
@@ -64,19 +59,19 @@
/* #undef C_ALLOCA */
/* what to put between the brackets for empty arrays */
-#define EMPTY_ARRAY_SIZE
+/* #undef EMPTY_ARRAY_SIZE */
/* Define this if you have a Motorola 74xx CPU */
/* #undef ENABLE_ALTIVEC */
/* Define to 1 if translation of program messages to the user's native
language is requested. */
-/* #define ENABLE_NLS 1 */
+/* #undef ENABLE_NLS */
/* Define this if you have Sun UltraSPARC CPU */
/* #undef ENABLE_VIS */
-/* Define to select libmad fixed pointarithmetic implementation */
+/* Define to select libmad fixed point arithmetic implementation */
/* #undef FPM_64BIT */
/* Define to select libmad fixed point arithmetic implementation */
@@ -119,6 +114,9 @@
/* Define this if you have ARTS (libartsc) installed */
/* #undef HAVE_ARTS */
+/* Define to 1 if you have the <avcodec.h> header file. */
+/* #undef HAVE_AVCODEC_H */
+
/* Define to 1 if you have the `basename' function. */
/* #undef HAVE_BASENAME */
@@ -173,6 +171,9 @@
/* Define to 1 if you have the `feof_unlocked' function. */
/* #undef HAVE_FEOF_UNLOCKED */
+/* Define this if you have ffmpeg library */
+/* #undef HAVE_FFMPEG */
+
/* Define to 1 if you have the `fgets_unlocked' function. */
/* #undef HAVE_FGETS_UNLOCKED */
@@ -221,6 +222,9 @@
/* Define this if you have gnome-vfs installed */
/* #undef HAVE_GNOME_VFS */
+/* Define to 1 if you have the `hstrerror' function. */
+/* #undef HAVE_HSTRERROR */
+
/* Define if you have the iconv() function. */
/* #undef HAVE_ICONV */
@@ -240,7 +244,7 @@
/* #undef HAVE_IRIXAL */
/* Supports ISO _Pragma() macro */
-#define HAVE_ISOC99_PRAGMA
+#define HAVE_ISOC99_PRAGMA 1
/* Define this if you have kernel statistics available via kstat interface */
/* #undef HAVE_KSTAT */
@@ -300,7 +304,7 @@
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `mempcpy' function. */
-/* #undef HAVE_MEMPCPY */
+#define HAVE_MEMPCPY 1
/* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1
@@ -329,6 +333,9 @@
/* Define this if you have OpenGL support available */
/* #undef HAVE_OPENGL */
+/* Define to 1 if you have the <postprocess.h> header file. */
+/* #undef HAVE_POSTPROCESS_H */
+
/* Define to 1 if you have the `putenv' function. */
#define HAVE_PUTENV 1
@@ -336,7 +343,7 @@
/* #undef HAVE_SDL */
/* Define to 1 if you have the `setenv' function. */
-#define HAVE_SETENV
+/* #undef HAVE_SETENV */
/* Define to 1 if you have the `setlocale' function. */
#define HAVE_SETLOCALE 1
@@ -348,7 +355,7 @@
/* #undef HAVE_SIGSET */
/* Define to 1 if you have the `snprintf' function. */
-#define HAVE_SNPRINTF 1
+/* #undef HAVE_SNPRINTF */
/* Define 1 if you have Solaris CD-ROM support */
/* #undef HAVE_SOLARIS_CDROM */
@@ -356,6 +363,9 @@
/* Define this if you have speex */
/* #undef HAVE_SPEEX */
+/* Define to 1 if speex headers are eg. <speex/speex.h> */
+/* #undef HAVE_SPEEX_SUBDIR */
+
/* Define to 1 if you have the <stdbool.h> header file. */
#define HAVE_STDBOOL_H 1
@@ -404,6 +414,9 @@
/* Define to 1 if you have the <sys/cdio.h> header file. */
/* #undef HAVE_SYS_CDIO_H */
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+/* #undef HAVE_SYS_IOCTL_H */
+
/* Define to 1 if you have the <sys/mixer.h> header file. */
/* #undef HAVE_SYS_MIXER_H */
@@ -477,7 +490,10 @@
/* #undef HAVE___ARGZ_STRINGIFY */
/* host os/cpu identifier */
-#define HOST_ARCH "mingw32/i686"
+/* #undef HOST_ARCH */
+
+/* Define this if built on Mac OS X/Darwin */
+/* #undef HOST_OS_DARWIN */
/* Define as const if the declaration of iconv() needs const. */
/* #undef ICONV_CONST */
@@ -486,7 +502,7 @@
/* #undef LIBMPEG2_MLIB */
/* Define 1 if you are compiling using MinGW */
-#define MINGW32 1
+/* #undef MINGW32 */
/* Define this if you want to load mlib lazily */
/* #undef MLIB_LAZYLOAD */
@@ -513,7 +529,7 @@
/* #undef SIZEOF_INT */
/* The size of a `long', as computed by sizeof. */
-/* #undef SIZEOF_LONG */
+#define SIZEOF_LONG 4
/* The size of a `long long', as computed by sizeof. */
/* #undef SIZEOF_LONG_LONG */
@@ -521,16 +537,16 @@
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
- STACK_DIRECTION > 0 => grows toward higher addresses
- STACK_DIRECTION < 0 => grows toward lower addresses
- STACK_DIRECTION = 0 => direction of growth unknown */
+ STACK_DIRECTION > 0 => grows toward higher addresses
+ STACK_DIRECTION < 0 => grows toward lower addresses
+ STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
-#define VERSION "1-rc3b"
+#define VERSION "1-rc6"
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
@@ -540,10 +556,10 @@
#define XINE_ACFLAGS "-I ${prefix}/share/aclocal"
/* Define this to osd fonts dir location */
-/* #define XINE_FONTDIR "/usr/local/share/xine/libxine1/fonts" */
+#define XINE_FONTDIR exec_path_append_subdir("fonts")
/* Path where catalog files will be. */
-/* #define XINE_LOCALEDIR "/usr/local/share/locale"*/
+#define XINE_LOCALEDIR exec_path_append_subdir("locale")
/* xine major version number */
#define XINE_MAJOR 1
@@ -552,7 +568,7 @@
#define XINE_MINOR 0
/* Define this to plugins directory location */
-/* #define XINE_PLUGINDIR "/usr/local/lib/xine/plugins/1.0.0" */
+#define XINE_PLUGINDIR exec_path_append_subdir("plugins")
/* xine sub version number */
#define XINE_SUB 0
@@ -561,10 +577,13 @@
#define X_DISPLAY_MISSING 1
/* enable warnings about being development release */
-#define _DEVELOPMENT_
+/* #undef _DEVELOPMENT_ */
/* enable GNU libc extension */
-#define _GNU_SOURCE
+/* #undef _GNU_SOURCE */
+
+/* Define this if you are ISO C9X compliant */
+#define _ISOC9X_SOURCE 1
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
/* #undef _LARGEFILE_SOURCE */
@@ -575,8 +594,8 @@
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
-/* Define as `__inline' if that's what the C compiler calls it, or to nothing
- if it is not supported. */
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
#define inline __inline
/* Define to `long' if <sys/types.h> does not define. */
@@ -584,3 +603,9 @@
/* Define to `unsigned' if <sys/types.h> does not define. */
/* #undef size_t */
+
+/* Define the real type of socklen_t */
+#define socklen_t size_t
+
+/* define ssize_t to __int64 if it's missing in default includes */
+#define ssize_t __int64
diff --git a/win32/include/msvc/sys/time.h b/win32/include/msvc/sys/time.h
new file mode 100644
index 000000000..074a8a1e6
--- /dev/null
+++ b/win32/include/msvc/sys/time.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2000-2001 the xine project
+ *
+ * This file is part of xine, a unix video player.
+ *
+ * xine is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * xine is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ *
+ * WIN32 PORT,
+ * by Matthew Grooms <elon@altavista.com>
+ *
+ * sys/time.h - There is no seperate sys/time.h for win32 so we simply
+ * include the standard time header as well as our xine
+ * timer functions.
+ */
+
+#include <time.h>