rpm  5.4.14
system.h
Go to the documentation of this file.
1 #ifndef H_SYSTEM_RUBY
2 #define H_SYSTEM_RUBY
3 
4 #include "../system.h"
5 
6 /* XXX ruby-1.8.6 grrr, ruby.h includes its own config.h too. */
7 #undef PACKAGE_NAME
8 #undef PACKAGE_TARNAME
9 #undef PACKAGE_VERSION
10 #undef PACKAGE_STRING
11 #undef PACKAGE_BUGREPORT
12 
13 #define _save _
14 #undef _
15 #define _xmalloc xmalloc
16 #undef xmalloc
17 #define _xcalloc xcalloc
18 #undef xcalloc
19 #define _xrealloc xrealloc
20 #undef xrealloc
21 #define _xfree xfree
22 #undef xfree
23 
24 #pragma GCC diagnostic ignored "-Wstrict-prototypes"
25 #include <ruby.h>
26 #pragma GCC diagnostic warning "-Wstrict-prototypes"
27 
28 #undef _
29 #define _ _save
30 #undef _save
31 #undef xmalloc
32 #define xmalloc _xmalloc
33 #undef _xmalloc
34 #undef xrealloc
35 #define xrealloc _xrealloc
36 #undef _xrealloc
37 #undef xfree
38 #define xfree _xfree
39 #undef xfree
40 
41 #endif /* H_SYSTEM_RUBY */