1 diff -ruN rlog-1.4.orig/rlog/common.h rlog-1.4/rlog/common.h
2 --- rlog-1.4.orig/rlog/common.h 2008-06-15 07:49:52.000000000 +0200
3 +++ rlog-1.4/rlog/common.h 2008-06-23 19:29:16.000000000 +0200
6 # define PRINTF(FMT,X) __attribute__ (( __format__ ( __printf__, FMT, X)))
7 # define HAVE_PRINTF_ATTR 1
8 -# define RLOG_SECTION __attribute__ (( section("RLOG_DATA") ))
11 # define expect(foo, bar) __builtin_expect((foo),bar)
14 # define PRINTF(FMT,X)
15 # define HAVE_PRINTF_ATTR 0
16 -# define RLOG_SECTION
20 diff -ruN rlog-1.4.orig/rlog/common.h.in rlog-1.4/rlog/common.h.in
21 --- rlog-1.4.orig/rlog/common.h.in 2008-06-15 05:10:13.000000000 +0200
22 +++ rlog-1.4/rlog/common.h.in 2008-06-23 19:28:28.000000000 +0200
25 # define PRINTF(FMT,X) __attribute__ (( __format__ ( __printf__, FMT, X)))
26 # define HAVE_PRINTF_ATTR 1
27 -# define RLOG_SECTION __attribute__ (( section("RLOG_DATA") ))
30 # define expect(foo, bar) __builtin_expect((foo),bar)
33 # define PRINTF(FMT,X)
34 # define HAVE_PRINTF_ATTR 0
35 -# define RLOG_SECTION
39 diff -ruN rlog-1.4.orig/rlog/rlog-c99.h rlog-1.4/rlog/rlog-c99.h
40 --- rlog-1.4.orig/rlog/rlog-c99.h 2008-06-15 05:56:57.000000000 +0200
41 +++ rlog-1.4/rlog/rlog-c99.h 2008-06-23 19:28:37.000000000 +0200
45 #define _rMessageDef(ID, COMPONENT) \
46 - static rlog::PublishLoc ID RLOG_SECTION = {& ID ## _enabled, \
47 + static rlog::PublishLoc ID = {& ID ## _enabled, \
48 &rlog::RLog_Register, 0, STR(COMPONENT), __FILE__, \
49 __FUNCTION__, __LINE__, 0};
51 diff -ruN rlog-1.4.orig/rlog/rlog-novariadic.h rlog-1.4/rlog/rlog-novariadic.h
52 --- rlog-1.4.orig/rlog/rlog-novariadic.h 2008-06-15 05:10:13.000000000 +0200
53 +++ rlog-1.4/rlog/rlog-novariadic.h 2008-06-23 19:28:45.000000000 +0200
56 #define _rMessageDef(ID, COMPONENT) \
57 static bool ID ## _enabled = true; \
58 - static rlog::PublishLoc ID RLOG_SECTION = {& ID ## _enabled, \
59 + static rlog::PublishLoc ID = {& ID ## _enabled, \
60 &rlog::RLog_Register, 0, STR(COMPONENT), __FILE__, \
61 __FUNCTION__, __LINE__, 0}
63 diff -ruN rlog-1.4.orig/rlog/rlog-prec99.h rlog-1.4/rlog/rlog-prec99.h
64 --- rlog-1.4.orig/rlog/rlog-prec99.h 2008-06-15 05:59:05.000000000 +0200
65 +++ rlog-1.4/rlog/rlog-prec99.h 2008-06-23 19:28:06.000000000 +0200
68 #define _rMessageDef(ID, COMPONENT) \
69 static bool ID ## _enabled = true; \
70 - static rlog::PublishLoc ID RLOG_SECTION = {& ID ## _enabled, \
71 + static rlog::PublishLoc ID = {& ID ## _enabled, \
72 &rlog::RLog_Register, 0, STR(COMPONENT), __FILE__, \
73 __FUNCTION__, __LINE__, 0};