[xiph-commits] r15798 - in trunk/ezstream: . src win32

moritz at svn.xiph.org moritz at svn.xiph.org
Wed Mar 18 13:24:36 PDT 2009


Author: moritz
Date: 2009-03-18 13:24:35 -0700 (Wed, 18 Mar 2009)
New Revision: 15798

Modified:
   trunk/ezstream/configure.in
   trunk/ezstream/src/compat.c
   trunk/ezstream/src/ezstream.h
   trunk/ezstream/src/strtonum.c
   trunk/ezstream/win32/compat.h
   trunk/ezstream/win32/config.h
Log:
Finish up the modifications to the Windows build. In case anything remains to be done, it'll be nits.

Modified: trunk/ezstream/configure.in
===================================================================
--- trunk/ezstream/configure.in	2009-03-18 20:15:24 UTC (rev 15797)
+++ trunk/ezstream/configure.in	2009-03-18 20:24:35 UTC (rev 15798)
@@ -118,14 +118,7 @@
 AC_TYPE_SIZE_T
 AC_TYPE_SSIZE_T
 
-AC_CHECK_TYPES(struct timeval, , ,
-[
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
-])
 
-
 dnl ###############
 dnl ## LIBRARIES #######################################################
 dnl ###############

Modified: trunk/ezstream/src/compat.c
===================================================================
--- trunk/ezstream/src/compat.c	2009-03-18 20:15:24 UTC (rev 15797)
+++ trunk/ezstream/src/compat.c	2009-03-18 20:24:35 UTC (rev 15798)
@@ -10,10 +10,6 @@
 # include <libgen.h>
 #endif /* HAVE_LIBGEN_H && !__linux__ */
 
-#ifndef PATH_MAX
-# define PATH_MAX		256
-#endif /* !PATH_MAX */
-
 #ifndef PATH_SEPARATORS
 # define PATH_SEPARATORS	"/"
 #endif /* !PATH_SEPARATORS */

Modified: trunk/ezstream/src/ezstream.h
===================================================================
--- trunk/ezstream/src/ezstream.h	2009-03-18 20:15:24 UTC (rev 15797)
+++ trunk/ezstream/src/ezstream.h	2009-03-18 20:24:35 UTC (rev 15798)
@@ -57,6 +57,10 @@
 # endif /* WIN32 */
 #endif /* !_PATH_DEVNULL */
 
+#ifndef PATH_MAX
+# define PATH_MAX		256
+#endif /* !PATH_MAX */
+
 #if !defined(HAVE_PCLOSE) && defined(HAVE__PCLOSE)
 # define pclose 	_pclose
 #endif /* !HAVE_PCLOSE && HAVE__PCLOSE */
@@ -92,13 +96,6 @@
 # define sleep(a)	Sleep((a) * 1000)
 #endif /* WIN32 */
 
-#ifndef HAVE_STRUCT_TIMEVAL
-struct timeval {
-	long	tv_sec;
-	long	tv_usec;
-};
-#endif
-
 /*
  * For compat.c and getopt.c:
  */

Modified: trunk/ezstream/src/strtonum.c
===================================================================
--- trunk/ezstream/src/strtonum.c	2009-03-18 20:15:24 UTC (rev 15797)
+++ trunk/ezstream/src/strtonum.c	2009-03-18 20:24:35 UTC (rev 15798)
@@ -22,11 +22,12 @@
 # include "config.h"
 #endif
 
+#include "ezstream.h"
+
 #include <errno.h>
 #include <limits.h>
 #include <stdlib.h>
 #include "strfctns.h"
-#include "compat.h"
 
 #define INVALID 	1
 #define TOOSMALL	2

Modified: trunk/ezstream/win32/compat.h
===================================================================
--- trunk/ezstream/win32/compat.h	2009-03-18 20:15:24 UTC (rev 15797)
+++ trunk/ezstream/win32/compat.h	2009-03-18 20:24:35 UTC (rev 15798)
@@ -9,25 +9,8 @@
 
 #define inline			__inline
 
-#define popen			_popen
-#define pclose			_pclose
-#define snprintf		_snprintf
-#define stat			_stat
-#define strncasecmp		strnicmp
-#ifndef __GNUC__
-# define strtoll		_strtoi64
-#endif /* !__GNUC__ */
-
-#define sleep(a)		Sleep((a) * 1000)
-
 #define va_copy(dst, src)	memcpy(&(dst), &(src), sizeof(va_list))
 
-#define S_IRGRP 		0
-#define S_IROTH 		0
-#define S_IWGRP 		0
-#define S_IWOTH 		0
-#define S_IXGRP 		0
-#define S_IXOTH 		0
 #define PATH_SEPARATORS 	"\\/"
 
 #ifndef ssize_t

Modified: trunk/ezstream/win32/config.h
===================================================================
--- trunk/ezstream/win32/config.h	2009-03-18 20:15:24 UTC (rev 15797)
+++ trunk/ezstream/win32/config.h	2009-03-18 20:24:35 UTC (rev 15798)
@@ -8,9 +8,12 @@
 #define HAVE_LOCALE_H		1
 
 #define HAVE_STAT		1
+#define HAVE__PCLOSE		1
+#define HAVE__POPEN		1
+#define HAVE__SNPRINTF		1
+#define HAVE__STRTOI64		1
 
-#define HAVE_STRUCT_TIMEVAL	1
-
+#define HAVE_ICONV		1
 #define ICONV_CONST
 
 #include <compat.h>



More information about the commits mailing list