19.03.2013 - Version 0.3.0 ported to Mac OS X

This commit is contained in:
peri4
2013-03-19 21:01:47 +04:00
parent 66c53a27fc
commit 02c629d6a8
10 changed files with 59 additions and 488 deletions

View File

@@ -20,11 +20,11 @@
#ifndef PIINCLUDES_H
#define PIINCLUDES_H
#define PIP_VERSION 0x000206
#define PIP_VERSION 0x000300
#define PIP_VERSION_MAJOR (PIP_VERSION & 0xFF0000) >> 16
#define PIP_VERSION_MINOR (PIP_VERSION & 0xFF00) >> 8
#define PIP_VERSION_REVISION PIP_VERSION & 0xFF
#define PIP_VERSION_SUFFIX "_beta"
#define PIP_VERSION_SUFFIX ""
#if WIN32 || WIN64 || _WIN32 || _WIN64 || __WIN32__ || __WIN64__
# define WINDOWS
@@ -125,10 +125,21 @@ typedef int socklen_t;
# include <sys/ioctl.h>
# include <net/if.h>
#endif
#ifdef MAC_OS
# include <mach/mach_traps.h>
# include <mach/mach.h>
# include <mach/clock.h>
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
typedef long time_t;
extern clock_serv_t __pi_mac_clock;
#endif
#ifndef QNX
# ifndef WINDOWS
# ifndef FREE_BSD
# define environ __environ
# ifndef MAC_OS
# define environ __environ
# endif
# endif
# endif
#endif
@@ -138,10 +149,6 @@ typedef int socklen_t;
#ifdef FREE_BSD
extern char ** environ;
#endif
#ifdef MAC_OS
typedef long time_t;
clock_serv_t __pi_mac_clock;
#endif
#include "pimonitor.h"
extern PIMonitor piMonitor;