#ifdef __cplusplus
constexpr std::uint32_t magic = 0xE85250D6;
-#else
-# define multiboot2_magic 0xE85250D6
-#endif // __cplusplus
-
-#ifdef __cplusplus
constexpr std::uint32_t arch_i386_32bit = 0;
constexpr std::uint32_t arch_mips_32bit = 4;
+ constexpr std::uint32_t checksum(std::uint32_t arch, std::uint32_t length) { return -(magic + arch + length); }
#else
+# define multiboot2_magic 0xE85250D6
# define multiboot2_arch_i386_32bit 0
# define multiboot2_arch_mips_32bit 4
-#endif // __cplusplus
-
-#ifdef __cplusplus
- constexpr std::uint32_t checksum(std::uint32_t arch, std::uint32_t length) { return -(magic + arch + length); }
-#else
# define multiboot2_checksum(arch, length) -(multiboot2_magic + (arch) + (length))
#endif // __cplusplus