rpm  5.4.4
ruby/system.h
Go to the documentation of this file.
00001 #ifndef H_SYSTEM_RUBY
00002 #define H_SYSTEM_RUBY
00003 
00004 #include "../system.h"
00005 
00006 /* XXX ruby-1.8.6 grrr, ruby.h includes its own config.h too. */
00007 #undef  PACKAGE_NAME
00008 #undef  PACKAGE_TARNAME
00009 #undef  PACKAGE_VERSION
00010 #undef  PACKAGE_STRING
00011 #undef  PACKAGE_BUGREPORT
00012 
00013 #define _save           _
00014 #undef  _
00015 #define _xmalloc        xmalloc
00016 #undef  xmalloc
00017 #define _xcalloc        xcalloc
00018 #undef  xcalloc
00019 #define _xrealloc       xrealloc
00020 #undef  xrealloc
00021 #define _xfree          xfree
00022 #undef  xfree
00023 
00024 #pragma GCC diagnostic ignored "-Wstrict-prototypes"
00025 #include <ruby.h>
00026 #pragma GCC diagnostic warning "-Wstrict-prototypes"
00027 
00028 #undef  _
00029 #define _               _save
00030 #undef  _save
00031 #undef  xmalloc
00032 #define xmalloc         _xmalloc
00033 #undef  _xmalloc
00034 #undef  xrealloc
00035 #define xrealloc        _xrealloc
00036 #undef  _xrealloc
00037 #undef  xfree
00038 #define xfree           _xfree
00039 #undef  xfree
00040 
00041 #endif  /* H_SYSTEM_RUBY */