X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fautodata%2Fautodata.h;h=3b1d01b4a83c1ec31d8529784e27f77f0d702962;hp=c9d774b982ee74256eb898917ed365ba1c7ac62d;hb=1cf60226627d300ec1f87a68a5c9c9981124c1bf;hpb=b5f5d105d159f8b46edc043dba02b52e54de0fc9 diff --git a/ccan/autodata/autodata.h b/ccan/autodata/autodata.h index c9d774b9..3b1d01b4 100644 --- a/ccan/autodata/autodata.h +++ b/ccan/autodata/autodata.h @@ -23,7 +23,7 @@ */ #define AUTODATA_TYPE(name, type) \ typedef type autodata_##name##_; \ - extern type *__start_autodata_##name[], *__stop_autodata_##name[] + extern type *__start_xautodata_##name[], *__stop_xautodata_##name[] /** * AUTODATA - add a pointer to this autodata set @@ -42,7 +42,7 @@ */ #define AUTODATA(name, ptr) \ static const autodata_##name##_ *NEEDED \ - __attribute__((section("autodata_" #name))) \ + __attribute__((section("xautodata_" #name))) \ AUTODATA_VAR_(name, __LINE__) = (ptr); /** @@ -68,8 +68,8 @@ */ #define autodata_get(name, nump) \ ((autodata_##name##_ **) \ - autodata_get_section(__start_autodata_##name, \ - __stop_autodata_##name, (nump))) + autodata_get_section(__start_xautodata_##name, \ + __stop_xautodata_##name, (nump))) #endif /* HAVE_SECTION_START_STOP */ /**