mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
include necessary headers and provide MinGW quick fallback for types
This commit is contained in:
parent
b91fab7665
commit
e9fa0afa62
1 changed files with 11 additions and 0 deletions
|
@ -28,8 +28,19 @@
|
|||
#include <Foundation/NSObject.h>
|
||||
#include <Foundation/NSError.h>
|
||||
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h> // for gid_t and uid_t
|
||||
#endif
|
||||
|
||||
#include <unistd.h> // for gid_t and uid_t
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_8, GS_API_LATEST)
|
||||
|
||||
#if defined (__MINGW__)
|
||||
typedef unsigned gid_t;
|
||||
typedef unsigned uid_t;
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue