mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 19:46:50 +00:00
revert the incorrect assumption made in 2007-05-21T04:35:09Z!patrick_x99@hotmail.com
This commit is contained in:
parent
66e2cf5b93
commit
188ab6dcbd
@ -36,9 +36,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <windows.h>
|
||||
|
||||
#define mkdir(a,b) (_mkdir(a))
|
||||
|
||||
#endif /* win32 */
|
||||
|
||||
/* /////////////////////////////////////////////////////////////////////////
|
||||
* Compiler differences
|
||||
@ -235,11 +232,11 @@ struct dirent *readdir(DIR *dir)
|
||||
*/
|
||||
#ifdef _MSC_VER
|
||||
# define stat _stat
|
||||
namespace {
|
||||
typedef int mode_t;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Because the phrase 'brain-dead Windows environment' is redundant...
|
||||
*/
|
||||
#ifndef S_IFMT
|
||||
#define S_IFMT (S_IFDIR|S_IFREG)
|
||||
#endif
|
||||
@ -250,18 +247,17 @@ struct dirent *readdir(DIR *dir)
|
||||
#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
typedef int mode_t;
|
||||
}
|
||||
|
||||
#endif /* !DIRENT_PROVIDED_BY_COMPILER */
|
||||
#if defined(DIRENT_PROVIDED_BY_COMPILER)
|
||||
|
||||
#define mkdir(a,b) (_mkdir(a))
|
||||
|
||||
#else /* !_WIN32 */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include <dirent.h>
|
||||
|
||||
#endif
|
||||
#endif /* !_WIN32 */
|
||||
|
||||
#ifdef __BEOS__
|
||||
#include <Directory.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user