ref: dd59304d26c2a437f7b24fcbded4ea5cf342d055
parent: e5ad296c482b5709673718cdadf75f36f7ce3fa3
author: Gildas Bazin <[email protected]>
date: Sun Mar 9 18:34:18 EST 2003
* src/common.h, src/error.c: fixed the PATH_MAX breakage on win32.
--- 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.3 2002/12/05 10:24:42 sam Exp $
+ * $Id: common.h,v 1.4 2003/03/09 23:34:18 gbazin Exp $
*
* Authors: Samuel Hocevar <[email protected]>
* Vincent Seguin <[email protected]>
@@ -45,6 +45,8 @@
#endif
#if defined( WIN32 )
+
+#define PATH_MAX MAX_PATH
/* several type definitions */
# if defined( __MINGW32__ )
--- a/src/error.c
+++ b/src/error.c
@@ -2,7 +2,7 @@
* error.c: error management functions
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
- * $Id: error.c,v 1.6 2003/02/04 11:54:36 massiot Exp $
+ * $Id: error.c,v 1.7 2003/03/09 23:34:18 gbazin Exp $
*
* Author: Samuel Hocevar <[email protected]>
*
@@ -24,6 +24,8 @@
#include "config.h"
#include <stdio.h>
+#include <stdlib.h>
+
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif