int dd_stat;
char dd_name[1];
} DIR;
-
-# ifdef S_ISDIR
-# undef S_ISDIR
-# endif /*! S_ISDIR */
-# define S_ISDIR(X) ((X)&_S_IFDIR)
# else
# include <dirent.h>
# endif /*!__MINGW32__*/
+
+# ifndef S_ISDIR
+# define S_ISDIR(X) ((X)&_S_IFDIR)
+# endif
#else
# include <sys/types.h>
# include <sys/stat.h>
* pointer. The return value is *NULL* if `var` is not found in the
* enviroment table.
*/
-const char *platform_getenv(char *var);
+const char *platform_getenv(const char *var);
/*
* Function: platform_vasprintf