ref: 91e835e396ca1ca7b14a3125f208b91382743fe2
parent: f023e43583229b3feb6595549b464e9a0e1ebff6
author: Gildas Bazin <gbazin@videolan.org>
date: Fri Apr 11 06:00:29 EDT 2003
* configure.ac, src/common.h: fixes for the cygwin build using the mno-cygwin flag.
--- a/configure.ac
+++ b/configure.ac
@@ -26,7 +26,12 @@
CFLAGS="${CFLAGS} -no-cpp-precomp"
;;
x*cygwin*)
- AC_DEFINE(SYS_CYGWIN, 1, Have a Cygwin system.)
+ dnl Check if we are using the mno-cygwin mode in which case we are
+ dnl actually dealing with a mingw32 compiler.
+ AC_EGREP_CPP(yes, [#ifndef WIN32
+ yes
+ #endif],
+ AC_DEFINE(SYS_CYGWIN, 1, Have a Cygwin system.))
AC_DEFINE(WIN32, 1, Using Win32.)
;;
xbeos*)
--- a/src/common.h
+++ b/src/common.h
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: common.h,v 1.4 2003/03/09 23:34:18 gbazin Exp $
+ * $Id: common.h,v 1.5 2003/04/11 10:00:29 gbazin Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
@@ -46,7 +46,9 @@
#if defined( WIN32 )
-#define PATH_MAX MAX_PATH
+#ifndef PATH_MAX
+# define PATH_MAX MAX_PATH
+#endif
/* several type definitions */
# if defined( __MINGW32__ )