From fb43bddc771094632bd08a4eab28fd3e714affd0 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 20 Jun 2019 20:30:25 -0400 Subject: Fix two more `#ifndef` for the linter --- compiler/ghc.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler') 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)\"" >> $@ -- cgit v1.2.1