Change, simplify and document the conditions for the include files.

Fix two build problems in Fedora 8 and probably other hosts with a newer C library (reported by Dosadi on #reactos)

svn path=/trunk/; revision=32681
This commit is contained in:
Colin Finck
2008-03-14 23:55:32 +00:00
parent 2b61e55c4e
commit cf076f2c7b
3 changed files with 27 additions and 15 deletions
+14 -6
View File
@@ -21,15 +21,23 @@
#endif//_MSC_VER
#ifdef WIN32
# include <direct.h>
# include <io.h>
#include <direct.h>
#include <io.h>
#else
# include <sys/stat.h>
# include <unistd.h>
# include <ctype.h>
# define MAX_PATH PATH_MAX
#include <sys/stat.h>
#include <unistd.h>
// Some hosts don't define PATH_MAX in unistd.h
#if !defined(PATH_MAX)
#include <limits.h>
#endif
#define MAX_PATH PATH_MAX
#endif
#include <assert.h>
#include <ctype.h>
#include <string.h>
#include "xml.h"
#include "ssprintf.h"