summaryrefslogtreecommitdiff
path: root/internal/compilers.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal/compilers.h')
-rw-r--r--internal/compilers.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/internal/compilers.h b/internal/compilers.h
index 10b119b61b..26c2f05cc0 100644
--- a/internal/compilers.h
+++ b/internal/compilers.h
@@ -1,29 +1,28 @@
#ifndef INTERNAL_COMPILERS_H /*-*-C-*-vi:se ft=c:*/
#define INTERNAL_COMPILERS_H
/**
- * @file
* @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.
- * @brief Internal header absorbing C compipler differences.
+ * @brief Internal header absorbing C compiler differences.
*/
-#include "ruby/3/compiler_since.h"
-#include "ruby/3/has/attribute.h"
-#include "ruby/3/has/builtin.h"
-#include "ruby/3/has/c_attribute.h"
-#include "ruby/3/has/declspec_attribute.h"
-#include "ruby/3/has/extension.h"
-#include "ruby/3/has/feature.h"
-#include "ruby/3/has/warning.h"
+#include "ruby/internal/compiler_since.h"
+#include "ruby/internal/has/attribute.h"
+#include "ruby/internal/has/builtin.h"
+#include "ruby/internal/has/c_attribute.h"
+#include "ruby/internal/has/declspec_attribute.h"
+#include "ruby/internal/has/extension.h"
+#include "ruby/internal/has/feature.h"
+#include "ruby/internal/has/warning.h"
#include "ruby/backward/2/gcc_version_since.h"
-#define MSC_VERSION_SINCE(_) RUBY3_COMPILER_SINCE(MSVC, (_) / 100, (_) % 100, 0)
-#define MSC_VERSION_BEFORE(_) RUBY3_COMPILER_BEFORE(MSVC, (_) / 100, (_) % 100, 0)
+#define MSC_VERSION_SINCE(_) RBIMPL_COMPILER_SINCE(MSVC, (_) / 100, (_) % 100, 0)
+#define MSC_VERSION_BEFORE(_) RBIMPL_COMPILER_BEFORE(MSVC, (_) / 100, (_) % 100, 0)
#ifndef __has_attribute
-# define __has_attribute(...) RUBY3_HAS_ATTRIBUTE(__VA_ARGS__)
+# define __has_attribute(...) RBIMPL_HAS_ATTRIBUTE(__VA_ARGS__)
#endif
#ifndef __has_c_attribute
@@ -33,23 +32,23 @@
#endif
#ifndef __has_declspec_attribute
-# define __has_declspec_attribute(...) RUBY3_HAS_DECLSPEC_ATTRIBUTE(__VA_ARGS__)
+# define __has_declspec_attribute(...) RBIMPL_HAS_DECLSPEC_ATTRIBUTE(__VA_ARGS__)
#endif
#ifndef __has_builtin
-# define __has_builtin(...) RUBY3_HAS_BUILTIN(__VA_ARGS__)
+# define __has_builtin(...) RBIMPL_HAS_BUILTIN(__VA_ARGS__)
#endif
#ifndef __has_feature
-# define __has_feature(...) RUBY3_HAS_FEATURE(__VA_ARGS__)
+# define __has_feature(...) RBIMPL_HAS_FEATURE(__VA_ARGS__)
#endif
#ifndef __has_extension
-# define __has_extension(...) RUBY3_HAS_EXTENSION(__VA_ARGS__)
+# define __has_extension(...) RBIMPL_HAS_EXTENSION(__VA_ARGS__)
#endif
#ifndef __has_warning
-# define __has_warning(...) RUBY3_HAS_WARNING(__VA_ARGS__)
+# define __has_warning(...) RBIMPL_HAS_WARNING(__VA_ARGS__)
#endif
#ifndef __GNUC__