diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-23 16:51:01 -0200 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-24 10:39:25 -0300 |
commit | 302029e093c88fb46cea8d6131726b82731110f9 (patch) | |
tree | e1eb77ccfd40fdf060599490e3e0af5ed6903a49 /generator.h | |
parent | 04b6a05df40f88e1a62e522fb65264b932a904d5 (diff) |
Change the getGenerators signature, because on some platforms a function exported as a C function
can't return a C++ type by value.
All generators plugins *MUST* be recompiled.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'generator.h')
-rw-r--r-- | generator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator.h b/generator.h index ee51cb87a..53e05e8c5 100644 --- a/generator.h +++ b/generator.h @@ -35,9 +35,9 @@ class AbstractMetaBuilder; class QFile; #define EXPORT_GENERATOR_PLUGIN(X)\ -extern "C" GENRUNNER_API GeneratorList getGenerators()\ +extern "C" GENRUNNER_EXPORT void getGenerators(GeneratorList* list)\ {\ - return GeneratorList() << X;\ + *list << X;\ }\ GENRUNNER_API |