Browse Source

clean build

pull/81/head
curt mayer 6 years ago
parent
commit
d7232abb60
  1. 3
      Tools/unix/zx/config.h.darwin
  2. 1
      Tools/unix/zx/config.h.linux
  3. 4
      Tools/unix/zx/zx.h

3
Tools/unix/zx/config.h.darwin

@ -2,10 +2,11 @@
#define HAVE_DIRENT_H
#define HAVE_UTIME_H
#define HAVE_FCNTL_H
#define HAVE_UNISTD_H
#define BINDIR80 getenv("ZXBINDIR")
#define LIBDIR80 getenv("ZXLIBDIR")
#define INCDIR80 getenv("ZXINCDIR")
#define LINUX
#define DARWIN
#include <sys/param.h>
#include <sys/mount.h>
#define _S_IFDIR S_IFDIR

1
Tools/unix/zx/config.h.linux

@ -3,6 +3,7 @@
#define HAVE_UTIME_H
#define HAVE_FCNTL_H
#define HAVE_SYS_VFS_H
#define HAVE_UNISTD_H
#define BINDIR80 getenv("ZXBINDIR")
#define LIBDIR80 getenv("ZXLIBDIR")
#define INCDIR80 getenv("ZXINCDIR")

4
Tools/unix/zx/zx.h

@ -31,7 +31,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef LINUX
#if defined(LINUX) || defined(DARWIN)
#include <unistd.h>
#define _isatty(a) isatty(a)
#define _fileno(a) fileno(a)
@ -87,7 +87,7 @@ extern char **argv;
extern int argc;
extern byte RAM[65536]; /* The Z80's address space */
extern usestdio;
extern int usestdio;
/* Z80 CPU emulation */

Loading…
Cancel
Save