diff options
Diffstat (limited to 'include/ruby/backward/2/limits.h')
| -rw-r--r-- | include/ruby/backward/2/limits.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/ruby/backward/2/limits.h b/include/ruby/backward/2/limits.h index 28eb1596a9..6f7021e5f4 100644 --- a/include/ruby/backward/2/limits.h +++ b/include/ruby/backward/2/limits.h @@ -1,11 +1,12 @@ -/** \noop-*-C++-*-vi:ft=cpp - * @file +#ifndef RUBY_BACKWARD2_LIMITS_H /*-*-C++-*-vi:se ft=cpp:*/ +#define RUBY_BACKWARD2_LIMITS_H +/** * @author Ruby developers <ruby-core@ruby-lang.org> * @copyright This file is a part of the programming language Ruby. * Permission is hereby granted, to either redistribute and/or * modify this file, provided that the conditions mentioned in the * file COPYING are met. Consult the file for details. - * @warning Symbols prefixed with either `RUBY3` or `ruby3` are + * @warning Symbols prefixed with either `RBIMPL` or `rbimpl` are * implementation details. Don't take them as canon. They could * rapidly appear then vanish. The name (path) of this header file * is also an implementation detail. Do not expect it to persist @@ -15,13 +16,13 @@ * recursively included from extension libraries written in C++. * Do not expect for instance `__VA_ARGS__` is always available. * We assume C99 for ruby itself but we don't assume languages of - * extension libraries. They could be written in C++98. + * extension libraries. They could be written in C++98. * @brief Historical shim for `<limits.h>`. * * The macros in this header file are obsolescent. Does anyone really need our - * own definition of #CHAR_BIT today? + * own definition of `CHAR_BIT` today? */ -#include "ruby/3/config.h" +#include "ruby/internal/config.h" #ifdef HAVE_LIMITS_H # include <limits.h> @@ -94,3 +95,5 @@ # define SSIZE_MAX SHRT_MAX # define SSIZE_MIN SHRT_MIN #endif + +#endif /* RUBY_BACKWARD2_LIMITS_H */ |
