include necessary headers and provide MinGW quick fallback for types

This commit is contained in:
rmottola 2020-02-01 16:15:37 +01:00
parent b91fab7665
commit e9fa0afa62

View file

@ -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