include sys/syslimits.h on mac os x for PATH_MAX and NAME_MAX

i really dislike having PATH_MAX in a header file...



SVN revision: 50231
This commit is contained in:
Vincent Torri 2010-07-13 19:17:35 +00:00
parent 84efd3507f
commit c7bb6d41f5
3 changed files with 6 additions and 3 deletions

View File

@ -288,11 +288,13 @@ if test "x${enable_ememoa}" = "xyes" ; then
)
fi
### Checks for header files
AC_HEADER_ASSERT
AC_HEADER_DIRENT
AC_HEADER_TIME
### Checks for types

View File

@ -19,6 +19,10 @@
#ifndef EINA_FILE_H_
#define EINA_FILE_H_
#if defined (__MacOSX__) || ( defined (__MACH__) && defined (__APPLE__))
# include <sys/syslimits.h>
#endif
#include "eina_types.h"
#include "eina_array.h"
#include "eina_iterator.h"

View File

@ -49,9 +49,6 @@ void *alloca (size_t);
# include <sys/stat.h>
# include <unistd.h>
#else
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# undef WIN32_LEAN_AND_MEAN
# include <Evil.h>
#endif /* _WIN2 */