diff options
-rw-r--r-- | internal.h | 15 | ||||
-rw-r--r-- | internal/serial.h | 22 |
2 files changed, 10 insertions, 27 deletions
@@ -12,13 +12,10 @@ #ifndef RUBY_INTERNAL_H #define RUBY_INTERNAL_H 1 -#include "ruby.h" -#if defined(__cplusplus) -extern "C" { -#if 0 -} /* satisfy cc-mode */ -#endif #endif #include "ruby/encoding.h" @@ -87,10 +84,4 @@ extern "C" { #include "internal/inits.h" #include "internal/warnings.h" -#if defined(__cplusplus) -#if 0 -{ /* satisfy cc-mode */ -#endif -} /* extern "C" { */ -#endif #endif /* RUBY_INTERNAL_H */ @@ -10,21 +10,13 @@ * file COPYING are met. Consult the file for details. */ -#if defined(HAVE_LONG_LONG) -typedef unsigned LONG_LONG rb_serial_t; -# define SERIALT2NUM ULL2NUM -# define PRI_SERIALT_PREFIX PRI_LL_PREFIX -# define SIZEOF_SERIAL_T SIZEOF_LONG_LONG -#elif defined(HAVE_UINT64_T) -typedef uint64_t rb_serial_t; -# define SERIALT2NUM SIZET2NUM -# define PRI_SERIALT_PREFIX PRI_64_PREFIX -# define SIZEOF_SERIAL_T SIZEOF_UINT64_T -#else -typedef unsigned long rb_serial_t; -# define SERIALT2NUM ULONG2NUM -# define PRI_SERIALT_PREFIX PRI_LONG_PREFIX -# define SIZEOF_SERIAL_T SIZEOF_LONG #endif #endif /* INTERNAL_SERIAL_H */ |