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