[MachO] Use OBJFORMAT_MACHO.
authorMoritz Angermann <moritz.angermann@gmail.com>
Tue, 11 Apr 2017 01:39:02 +0000 (21:39 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 11 Apr 2017 01:39:03 +0000 (21:39 -0400)
Reviewers: bgamari, austin, erikd, simonmar, rwbarton

Reviewed By: rwbarton

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3433

rts/linker/LoadArchive.c
rts/linker/MachOTypes.h

index a33c00d..c83b3ba 100644 (file)
@@ -13,7 +13,7 @@
 /* Platform specific headers */
 #if defined(OBJFORMAT_PEi386)
 #  include "linker/PEi386.h"
-#elif defined(darwin_HOST_OS) || defined(ios_HOST_OS)
+#elif defined(OBJFORMAT_MACHO)
 #  include "linker/MachO.h"
 #  include <regex.h>
 #  include <mach/machine.h>
index f78bfca..5b2dced 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef MachOTypes_h
 #define MachOTypes_h
 
-#if defined(darwin_HOST_OS) || defined(ios_HOST_OS)
+#if defined(OBJFORMAT_MACHO)
 
 #include "ghcplatform.h"
 
@@ -129,5 +129,5 @@ typedef struct _SectionFormatInfo {
     MachORelocationInfo * relocation_info;
 } SectionFormatInfo;
 
-#endif /* darwin_HOST_OS || ios_HOST_OS */
+#endif /* OBJECTFORMAT_MACHO */
 #endif /* MachOTypes_h */