Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jZRKB-000659-8J for mharc-grub-devel@gnu.org; Thu, 14 May 2020 23:47:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZRK8-00063R-VH for grub-devel@gnu.org; Thu, 14 May 2020 23:47:49 -0400 Received: from mailout01.mx.bawue.net ([193.7.176.62]:34169) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZRK8-0000cQ-1w for grub-devel@gnu.org; Thu, 14 May 2020 23:47:48 -0400 Received: from infty.fritz.box (p5b17584c.dip0.t-ipconnect.de [91.23.88.76]) (Authenticated sender: pdim@bawue.de) by smtp.bawue.net (Postfix) with ESMTPSA id 2CA8822671; Fri, 15 May 2020 05:47:41 +0200 (CEST) From: Hans Ulrich Niedermann To: grub-devel@gnu.org Cc: Hans Ulrich Niedermann Subject: [MULTIBOOT2 SPEC PATCH v4 18/27] multiboot2: Use predefined #ifdef __ASSEMBLER__ Date: Fri, 15 May 2020 05:43:41 +0200 Message-Id: <20200515034349.133092-19-hun@n-dimensional.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200515034349.133092-1-hun@n-dimensional.de> References: <20200515034349.133092-1-hun@n-dimensional.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanner: SAV Dynamic Interface 2.6.0, Engine: 3.77.1, SAV: 5.75 (A93B943C) on relay01.mx.bawue.net using milter-sssp 0.1.0 X-Virus-Scan: Found to be clean. Received-SPF: pass client-ip=193.7.176.62; envelope-from=hun@n-dimensional.de; helo=mailout01.mx.bawue.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/14 23:46:11 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2020 03:47:49 -0000 GCC already predefines __ASSEMBLER__ for .S files (assembly with C preprocessor), so we can just use that instead of defining our own ASM_FILE macro. Signed-off-by: Hans Ulrich Niedermann diff --git a/doc/boot_i386.S b/doc/boot_i386.S index 14dc14660..2aa2a92b6 100644 --- a/doc/boot_i386.S +++ b/doc/boot_i386.S @@ -15,7 +15,6 @@ * along with this program. If not, see . */ -#define ASM_FILE 1 #include /* C symbol format. HAVE_ASM_USCORE is defined by configure. */ diff --git a/doc/boot_mips.S b/doc/boot_mips.S index 3f99c81a0..b59e3fd6a 100644 --- a/doc/boot_mips.S +++ b/doc/boot_mips.S @@ -15,7 +15,6 @@ * along with this program. If not, see . */ -#define ASM_FILE 1 #include /* C symbol format. HAVE_ASM_USCORE is defined by configure. */ diff --git a/doc/multiboot2.h b/doc/multiboot2.h index d3b03d7a1..f89cd5e77 100644 --- a/doc/multiboot2.h +++ b/doc/multiboot2.h @@ -92,7 +92,7 @@ #define MULTIBOOT_CONSOLE_FLAGS_CONSOLE_REQUIRED 1 #define MULTIBOOT_CONSOLE_FLAGS_EGA_TEXT_SUPPORTED 2 -#ifndef ASM_FILE +#ifndef __ASSEMBLER__ typedef unsigned char multiboot_uint8_t; typedef unsigned short multiboot_uint16_t; @@ -417,6 +417,6 @@ struct multiboot_tag_load_base_addr multiboot_uint32_t load_base_addr; }; -#endif /* ! ASM_FILE */ +#endif /* ! __ASSEMBLER__ */ #endif /* ! MULTIBOOT_HEADER */ -- 2.26.2