allow to set default group
[libt2n] / codegen / codegen-stubhead.hxx
index d21130f..5c330f3 100644 (file)
 #include <command.hxx>
 
 #ifdef __GCCXML__
-#define LIBT2N_SET_DEFAULTGROUP(x) namespace { typedef __attribute((gccxml(#x))) int libt2n_default; }
+#define LIBT2N_SET_DEFAULTGROUP(x) namespace { typedef __attribute((gccxml("libt2n-"#x))) int libt2n_default_group; }
+/* not allowed anymore
+#define LIBT2N_SET_DEFAULTGROUP(x) #define LIBT2N_EXPORT __attribute((gccxml("libt2n-"#x)))
+*/
 #define LIBT2N_EXPORT __attribute((gccxml("libt2n-default")))
 #define LIBT2N_EXPORT_GROUP(group) __attribute((gccxml("libt2n-"#group)))
 #else