X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=examples%2Fminimalistic-stub.hxx;h=7516a31243bfd94d8c43ff3d791f14d3f139b4fc;hp=78889894729472da767f784c1ccb92a972c2eb11;hb=a63e08b83794273da3840e0b8bf15bf0085fe3c4;hpb=db49c2f908cd5a007e21d27ba614eb4018f92efc diff --git a/examples/minimalistic-stub.hxx b/examples/minimalistic-stub.hxx index 7888989..7516a31 100644 --- a/examples/minimalistic-stub.hxx +++ b/examples/minimalistic-stub.hxx @@ -21,10 +21,14 @@ #include #include -#ifdef _GCCXML__ -#define LIBT2P_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 LIBT2P_EXPORT +#define LIBT2N_SET_DEFAULTGROUP(x) +#define LIBT2N_EXPORT +#define LIBT2N_EXPORT_GROUP(group) #endif class cmd_group_example : public libt2n::command