Cleanups
This commit is contained in:
parent
a806a67b0b
commit
ab2d13d05a
|
@ -30,45 +30,22 @@
|
||||||
#include <kernel/image.h>
|
#include <kernel/image.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)) || defined(__QNX__) || defined(PSP)
|
#ifdef _WIN32
|
||||||
#include <unistd.h> /* stat() is defined here */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__CELLOS_LV2__)
|
|
||||||
|
|
||||||
#ifndef S_ISDIR
|
|
||||||
#define S_ISDIR(x) (x & 0040000)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(_WIN32)
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#define setmode _setmode
|
|
||||||
#endif
|
|
||||||
#ifdef _XBOX
|
|
||||||
#include <xtl.h>
|
|
||||||
#define INVALID_FILE_ATTRIBUTES -1
|
|
||||||
#else
|
|
||||||
#include <io.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#include <windows.h>
|
|
||||||
#endif
|
|
||||||
#elif defined(VITA)
|
|
||||||
#include <psp2/io/fcntl.h>
|
|
||||||
#include <psp2/io/dirent.h>
|
|
||||||
#else
|
#else
|
||||||
#include <sys/types.h>
|
#include <unistd.h> /* stat() is defined here */
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <dirent.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <CoreFoundation/CoreFoundation.h>
|
#include <CoreFoundation/CoreFoundation.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__CELLOS_LV2__)
|
||||||
|
#ifndef S_ISDIR
|
||||||
|
#define S_ISDIR(x) (x & 0040000)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
#include <compat/strl.h>
|
#include <compat/strl.h>
|
||||||
#include <compat/posix_string.h>
|
#include <compat/posix_string.h>
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
#endif
|
#endif
|
||||||
#elif defined(VITA)
|
#elif defined(VITA)
|
||||||
#include <psp2/io/fcntl.h>
|
#include <psp2/io/fcntl.h>
|
||||||
|
#include <psp2/io/dirent.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
Loading…
Reference in New Issue