X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=examples%2Fminimalistic-stub.hxx;h=7516a31243bfd94d8c43ff3d791f14d3f139b4fc;hp=510fa748929a31aa74c86c336742f3cc370d4f0c;hb=3b7c93a8beb79498d2116969ff9c873fbe56d157;hpb=71def1d72676dc1e60abd8b24e9285b7edbc9172 diff --git a/examples/minimalistic-stub.hxx b/examples/minimalistic-stub.hxx index 510fa74..7516a31 100644 --- a/examples/minimalistic-stub.hxx +++ b/examples/minimalistic-stub.hxx @@ -21,10 +21,14 @@ #include #include -#ifdef _GCCXML__ -#define LIBT2N_EXPORT __attribute((gccxml("libt2n"))) +#ifdef __GCCXML__ +#define LIBT2N_SET_DEFAULTGROUP(x) namespace { typedef __attribute((gccxml(#x))) int libt2n_default; } +#define LIBT2N_EXPORT __attribute((gccxml("libt2n-default"))) +#define LIBT2N_EXPORT_GROUP(group) __attribute((gccxml("libt2n-"#group))) #else +#define LIBT2N_SET_DEFAULTGROUP(x) #define LIBT2N_EXPORT +#define LIBT2N_EXPORT_GROUP(group) #endif class cmd_group_example : public libt2n::command