From 70145eb1500f58b6ab1556a72b391f8892a7c340 Mon Sep 17 00:00:00 2001
From: Tyler Wilding <xtvaser@gmail.com>
Date: Fri, 24 Dec 2021 21:26:47 -0500
Subject: [PATCH] macos: add `undef` to fix macOS builds

---
 common/emitter/legacy_instructions.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/common/emitter/legacy_instructions.h b/common/emitter/legacy_instructions.h
index fdd9304cf1..5b731fd48b 100644
--- a/common/emitter/legacy_instructions.h
+++ b/common/emitter/legacy_instructions.h
@@ -22,6 +22,10 @@
 #define ATTR_DEP
 #endif
 
+#ifdef FSCALE
+# undef FSCALE // Defined in a macOS header
+#endif
+
 //------------------------------------------------------------------
 // legacy jump/align functions
 //------------------------------------------------------------------