From 4a6a3aff5d1ac048f46bb935ecace2754977e563 Mon Sep 17 00:00:00 2001 From: Jim Date: Mon, 9 Mar 2020 01:12:45 -0400 Subject: [PATCH] em: add macro to force gcc to obey inline keyword History: when the emulator was first developed on OSX 10.4 (PowerPC), the inline keyword was added by profiling with Apple's pretty fantastic Shark profiler. Apple's version of gcc had an -fobey-inline switch that the makefile used to force gcc to obey the inline keyword. This macro does the same thing --- em.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/em.c b/em.c index a0c26ba..9731362 100644 --- a/em.c +++ b/em.c @@ -1,3 +1,5 @@ +#define inline inline __attribute__((always_inline)) + /* Pr1me Computer emulator, Jim Wilcoxson (prirun@gmail.com), April 4, 2005 Copyright (C) 2005-2019, Jim Wilcoxson. All Rights Reserved.