diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-26 10:53:10 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-26 18:57:26 +0900 |
commit | a14611cd54d2ac02daad5ccfe99fc3ec9b0818bd (patch) | |
tree | 596aeff57c327089a1fea6a913eeaf92ef8e32b4 /include | |
parent | 287eac5e8ecb774edcc3e4000f3b4848700d23e4 (diff) |
Fix -Wundef warnings
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6634
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/internal/intern/gc.h | 2 | ||||
-rw-r--r-- | include/ruby/memory_view.h | 2 | ||||
-rw-r--r-- | include/ruby/util.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/internal/intern/gc.h b/include/ruby/internal/intern/gc.h index e7b8008729..ae79498cf3 100644 --- a/include/ruby/internal/intern/gc.h +++ b/include/ruby/internal/intern/gc.h @@ -26,7 +26,7 @@ # include <stddef.h> /* size_t */ #endif -#if HAVE_SYS_TYPES_H +#ifdef HAVE_SYS_TYPES_H # include <sys/types.h> /* ssize_t */ #endif diff --git a/include/ruby/memory_view.h b/include/ruby/memory_view.h index 83931038a0..1ddca2d46f 100644 --- a/include/ruby/memory_view.h +++ b/include/ruby/memory_view.h @@ -16,7 +16,7 @@ # include <stddef.h> /* size_t */ #endif -#if HAVE_SYS_TYPES_H +#ifdef HAVE_SYS_TYPES_H # include <sys/types.h> /* ssize_t */ #endif diff --git a/include/ruby/util.h b/include/ruby/util.h index f0ea874322..e8727a3200 100644 --- a/include/ruby/util.h +++ b/include/ruby/util.h @@ -19,7 +19,7 @@ # include <stddef.h> /* size_t */ #endif -#if HAVE_SYS_TYPES_H +#ifdef HAVE_SYS_TYPES_H # include <sys/types.h> /* ssize_t */ #endif |