automake >= 1.5? does not allow to use += if the variable is not defined yet => use...
[libt2n] / examples / minimalistic-stub.hxx
index f6e7de1..7516a31 100644 (file)
 #include <command.hxx>
 
 #ifdef __GCCXML__
-#define LIBT2N_EXPORT __attribute((gccxml("libt2n")))
+#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