summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-06-20 20:30:25 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-07-09 22:56:18 -0400
commitfb43bddc771094632bd08a4eab28fd3e714affd0 (patch)
tree50ad6cc9a401dc61209215b0e719e35b55d67cb7
parentb05c8423bd97547e7961d947df27b34f52f2ce47 (diff)
downloadhaskell-fb43bddc771094632bd08a4eab28fd3e714affd0.tar.gz
Fix two more `#ifndef` for the linter
-rw-r--r--compiler/ghc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ghc.mk b/compiler/ghc.mk
index b8c0a1a2fc..1cd82d1635 100644
--- a/compiler/ghc.mk
+++ b/compiler/ghc.mk
@@ -93,7 +93,7 @@ PLATFORM_H = ghc_boot_platform.h
compiler/stage1/$(PLATFORM_H) : mk/config.mk mk/project.mk | $$(dir $$@)/.
$(call removeFiles,$@)
@echo "Creating $@..."
- @echo "#ifndef __PLATFORM_H__" >> $@
+ @echo "#if !defined(__PLATFORM_H__)" >> $@
@echo "#define __PLATFORM_H__" >> $@
@echo >> $@
@echo "#define BuildPlatform_NAME \"$(BUILDPLATFORM)\"" >> $@
@@ -134,7 +134,7 @@ compiler/stage1/$(PLATFORM_H) : mk/config.mk mk/project.mk | $$(dir $$@)/.
compiler/stage2/$(PLATFORM_H) : mk/config.mk mk/project.mk | $$(dir $$@)/.
$(call removeFiles,$@)
@echo "Creating $@..."
- @echo "#ifndef __PLATFORM_H__" >> $@
+ @echo "#if !defined(__PLATFORM_H__)" >> $@
@echo "#define __PLATFORM_H__" >> $@
@echo >> $@
@echo "#define BuildPlatform_NAME \"$(HOSTPLATFORM)\"" >> $@