apple2ix/src/meta/darwin-shim.h

33 lines
567 B
C
Raw Permalink Normal View History

2014-06-21 17:00:58 +00:00
/*
* Apple // emulator for *ix
2014-06-21 17:00:58 +00:00
*
* This software package is subject to the GNU General Public License
* version 3 or later (your choice) as published by the Free Software
2014-06-21 17:00:58 +00:00
* Foundation.
*
* Copyright 2013-2015 Aaron Culliney
2014-06-21 17:00:58 +00:00
*
*/
#ifndef _CPU_REGS_H_
#define _CPU_REGS_H_
#include "common.h"
#ifdef __APPLE__
#if !defined(CLOCK_MONOTONIC)
# define CLOCK_MONOTONIC 1
#endif
#if !defined(CLOCK_REALTIME)
# define CLOCK_REALTIME 2
#endif
#define clock_gettime my_clock_gettime
2014-06-21 17:00:58 +00:00
int my_clock_gettime(int, struct timespec *);
2014-06-21 17:00:58 +00:00
#endif // __APPLE__
#endif