GNOME Bugzilla – Bug 523225
modules/input/im*.c: MODULE_ENTRY macros make illegal code
Last modified: 2008-03-18 21:29:38 UTC
Please describe the problem: Please see the following codes about MODULE_ENTRY. Original code: GtkIMContext * MODULE_ENTRY (create) (const gchar *context_id) Preprocessed code: GtkIMContext * __declspec(dllexport) im_module_create (const gchar *context_id) The macro puts '__declspec(dllexport)' at the illegal position. '__declspec(dllexport)' have to be put at the top of the declaration. Steps to reproduce: 1. compile im*.c Actual results: An error occurs. Expected results: correct code: __declspec(dllexport) GtkIMContext * im_module_create (const gchar *context_id) Does this happen every time? Revision 19896 Other information:
I guess this is with MSVC?
Fixed: 2008-03-18 Tor Lillqvist <tml@novell.com> Bug 523225 - modules/input/im*.c: MODULE_ENTRY macros make illegal codes * modules/input/im*.c: Modify the MODULE_ENTRY macro so the G_MODULE_ENTRY decoration can be put in a more correct place.