mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
define targets for generic BSD and oracle machines
This commit is contained in:
parent
05ecaa498c
commit
c193676fe9
@ -40,6 +40,12 @@
|
|||||||
#ifndef GHC_FILESYSTEM_H
|
#ifndef GHC_FILESYSTEM_H
|
||||||
#define GHC_FILESYSTEM_H
|
#define GHC_FILESYSTEM_H
|
||||||
|
|
||||||
|
// #define BSD manifest constant only in
|
||||||
|
// sys/param.h
|
||||||
|
#ifndef _WIN32
|
||||||
|
#include <sys/param.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef GHC_OS_DETECTED
|
#ifndef GHC_OS_DETECTED
|
||||||
#if defined(__APPLE__) && defined(__MACH__)
|
#if defined(__APPLE__) && defined(__MACH__)
|
||||||
#define GHC_OS_MACOS
|
#define GHC_OS_MACOS
|
||||||
@ -54,6 +60,10 @@
|
|||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
#define GHC_OS_WINDOWS
|
#define GHC_OS_WINDOWS
|
||||||
#define GHC_OS_WIN32
|
#define GHC_OS_WIN32
|
||||||
|
#elif defined(__svr4__)
|
||||||
|
#define GHC_OS_SYS5R4
|
||||||
|
#elif defined(BSD)
|
||||||
|
#define GHC_OS_BSD
|
||||||
#else
|
#else
|
||||||
#error "Operating system currently not supported!"
|
#error "Operating system currently not supported!"
|
||||||
#endif
|
#endif
|
||||||
@ -106,6 +116,7 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <limits.h>
|
||||||
#ifdef GHC_OS_ANDROID
|
#ifdef GHC_OS_ANDROID
|
||||||
#include <android/api-level.h>
|
#include <android/api-level.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user