summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bigdecimal/missing.h2
-rw-r--r--ext/psych/yaml/yaml_private.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/bigdecimal/missing.h b/ext/bigdecimal/missing.h
index 11b58c099d..7969849158 100644
--- a/ext/bigdecimal/missing.h
+++ b/ext/bigdecimal/missing.h
@@ -45,7 +45,7 @@ extern "C" {
# if __has_builtin(__builtin_unreachable)
# define UNREACHABLE __builtin_unreachable()
-# elif HAVE___ASSUME
+# elif defined(HAVE___ASSUME)
# define UNREACHABLE __assume(0)
# else
diff --git a/ext/psych/yaml/yaml_private.h b/ext/psych/yaml/yaml_private.h
index 6c674de147..266a6bd3a7 100644
--- a/ext/psych/yaml/yaml_private.h
+++ b/ext/psych/yaml/yaml_private.h
@@ -2,7 +2,7 @@
#include RUBY_EXTCONF_H
#endif
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
#include "config.h"
#endif