mirror of
https://github.com/rfivet/uemacs.git
synced 2024-09-28 16:35:53 -04:00
Changes to compile on macOS. (#2)
defines.h: Use (defined(__APPLE__) && defined(__MACH__)) to detect macOS, as suggested by https://stackoverflow.com/questions/7063303/macro-unix-not-defined-in-macos-x. Combined with __NetBSD__ to set BSD=1 and POSIX=1. main.c: Include <unistd.h> to pick up sleep() declaration. Co-authored-by: Rob Gowin <rob.gowin@gmail.com>
This commit is contained in:
parent
ca23e6c394
commit
737fee5323
@ -2,9 +2,9 @@
|
|||||||
#ifndef __DEFINES_H__
|
#ifndef __DEFINES_H__
|
||||||
#define __DEFINES_H__
|
#define __DEFINES_H__
|
||||||
|
|
||||||
#if __unix__
|
#if __unix__ || (defined(__APPLE__) && defined(__MACH__))
|
||||||
# define UNIX 1
|
# define UNIX 1
|
||||||
# if __NetBSD__
|
# if __NetBSD__ || (defined(__APPLE__) && defined(__MACH__))
|
||||||
# define BSD 1
|
# define BSD 1
|
||||||
# define POSIX 1
|
# define POSIX 1
|
||||||
# elif __linux__
|
# elif __linux__
|
||||||
|
Loading…
Reference in New Issue
Block a user