]> git.sesse.net Git - vlc/commitdiff
vlc_common: Avoid a redefinition of PATH_MAX on cygwin
authorOlivier Teulière <ipkiss@videolan.org>
Sat, 22 Nov 2003 13:56:21 +0000 (13:56 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Sat, 22 Nov 2003 13:56:21 +0000 (13:56 +0000)
include/vlc_common.h

index 50997146f37a3612e2c08aef4397c724d63cd567..d2290971ef4ef610d078851211dc9c3913a09ac3 100644 (file)
@@ -3,7 +3,7 @@
  * Collection of useful common types and macros definitions
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vlc_common.h,v 1.88 2003/11/21 15:32:08 fenrir Exp $
+ * $Id: vlc_common.h,v 1.89 2003/11/22 13:56:21 ipkiss Exp $
  *
  * Authors: Samuel Hocevar <sam@via.ecp.fr>
  *          Vincent Seguin <seguin@via.ecp.fr>
@@ -111,7 +111,9 @@ typedef int                 ptrdiff_t;
 
 #if defined( WIN32 )
 #   include <malloc.h>
-#define PATH_MAX MAX_PATH
+#   ifndef PATH_MAX
+#       define PATH_MAX MAX_PATH
+#   endif
 #endif
 
 #if (defined( WIN32 ) || defined( UNDER_CE )) && !defined( _SSIZE_T_ )