From 676878951aaa4c80a53659156712b13c91ec7176 Mon Sep 17 00:00:00 2001 From: Martijn Courteaux Date: Tue, 24 Sep 2024 09:02:56 +0200 Subject: [PATCH] Do not use undefined preprocessor macros. This fixes a warning produced when using `-Wundef`. --- include/foonathan/memory/config.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/foonathan/memory/config.hpp b/include/foonathan/memory/config.hpp index 233caf6..25fe81f 100644 --- a/include/foonathan/memory/config.hpp +++ b/include/foonathan/memory/config.hpp @@ -35,7 +35,7 @@ // hosted implementation #ifndef FOONATHAN_HOSTED_IMPLEMENTATION -#if !_MSC_VER && !__STDC_HOSTED__ +#if !defined(_MSC_VER) && !defined(__STDC_HOSTED__) #define FOONATHAN_HOSTED_IMPLEMENTATION 0 #else #define FOONATHAN_HOSTED_IMPLEMENTATION 1