1 #ifndef RUBY_BACKWARD2_LONG_LONG_H
2 #define RUBY_BACKWARD2_LONG_LONG_H
28 #include "ruby/internal/config.h"
32 #if defined(__DOXYGEN__)
34 # define HAVE_LONG_LONG 1
35 # define HAVE_TRUE_LONG_LONG 1
38 # define LONG_LONG long long.
40 #elif RBIMPL_HAS_WARNING("-Wc++11-long-long")
41 # define HAVE_TRUE_LONG_LONG 1
43 RBIMPL_WARNING_PUSH() \
44 RBIMPL_WARNING_IGNORED(-Wc++11-long-long) \
48 #elif RBIMPL_HAS_WARNING("-Wlong-long")
49 # define HAVE_TRUE_LONG_LONG 1
51 RBIMPL_WARNING_PUSH() \
52 RBIMPL_WARNING_IGNORED(-Wlong-long) \
56 #elif defined(HAVE_LONG_LONG)
57 # define HAVE_TRUE_LONG_LONG 1
58 # define LONG_LONG long long
60 #elif SIZEOF___INT64 > 0
61 # define HAVE_LONG_LONG 1
62 # define LONG_LONG __int64
63 # undef SIZEOF_LONG_LONG
64 # define SIZEOF_LONG_LONG SIZEOF___INT64
67 # error Hello! Ruby developers believe this message must not happen.
68 # error If you encounter this message, can you file a bug report?
69 # error Remember to attach a detailed description of your environment.
Defines RBIMPL_HAS_WARNING.
Defines RBIMPL_WARNING_PUSH.