mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Support building on Windows with Clang MSVC target
This commit is contained in:
parent
ece6fc97ff
commit
61709e6101
174 changed files with 991 additions and 320 deletions
|
@ -44,13 +44,26 @@
|
|||
#import "../GSPrivate.h"
|
||||
#import "../GSNetwork.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <sys/file.h>
|
||||
#if defined(HAVE_SYS_FCNTL_H)
|
||||
# include <sys/fcntl.h>
|
||||
#elif defined(HAVE_FCNTL_H)
|
||||
# include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_SYS_FILE_H)
|
||||
# include <sys/file.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <io.h>
|
||||
#include <stdio.h>
|
||||
|
||||
// S_ISREG is not defined in Windows headers
|
||||
#if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
|
||||
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
#endif
|
||||
|
||||
#ifndef O_BINARY
|
||||
#ifdef _O_BINARY
|
||||
#define O_BINARY _O_BINARY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue