Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
gcc.h
Go to the documentation of this file.
1#ifndef RBIMPL_COMPILER_IS_GCC_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_COMPILER_IS_GCC_H
26
27#if ! defined(__GNUC__)
28# define RBIMPL_COMPILER_IS_GCC 0
29
30#elif RBIMPL_COMPILER_IS(Apple)
31# define RBIMPL_COMPILER_IS_GCC 0
32
33#elif RBIMPL_COMPILER_IS(Clang)
34# define RBIMPL_COMPILER_IS_GCC 0
35
36#elif RBIMPL_COMPILER_IS(Intel)
37# define RBIMPL_COMPILER_IS_GCC 0
38
39#else
40# define RBIMPL_COMPILER_IS_GCC 1
41# define RBIMPL_COMPILER_VERSION_MAJOR __GNUC__
42# define RBIMPL_COMPILER_VERSION_MINOR __GNUC_MINOR__
43# define RBIMPL_COMPILER_VERSION_PATCH __GNUC_PATCHLEVEL__
44#endif
45
46#endif /* RBIMPL_COMPILER_IS_GCC_H */
Defines RBIMPL_COMPILER_IS_Apple.
Defines RBIMPL_COMPILER_IS_Clang.
Defines RBIMPL_COMPILER_IS_Intel.