Skip to content

Commit

Permalink
Some minor fixes for OSX.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Sep 9, 2024
1 parent 9965d37 commit f1579a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rt/cgen/cowgol.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>

#if defined __APPLE__
#include <machine/endian.h>
#else
#include <endian.h>
#endif

#if BYTE_ORDER == BIG_ENDIAN
#error "Sorry, cowgol cgen doesn't work on big endian machines yet."
Expand Down
1 change: 1 addition & 0 deletions tools/cpmemu/emulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <stdio.h>
#include <stdint.h>
#include <signal.h>
#include <string.h>
#include <readline/readline.h>
#include <readline/history.h>
#include <z80ex/z80ex_dasm.h>
Expand Down

0 comments on commit f1579a1

Please sign in to comment.