GNOME Bugzilla – Bug 690835
mingw build from git master fails with "no previous declaration for 'DllMain'"
Last modified: 2013-01-16 22:57:36 UTC
Created attachment 232350 [details] [review] Add prototype declaration for DllMain When cross compiling master for win32 with mingw 4.4.4 the build fails with the error ./win32/clutter-backend-win32.c:212: error: no previous declaration for 'DllMain' Not sure if this is the proper solution, but adding a prototype decleration for DllMain at the start of the clutter-backend-win32.c file fixes the build. This behaviour does not occur when maintainer mode is disabled.
Review of attachment 232350 [details] [review]: interesting: we never needed it before, but looking at GTK+ it seems it's common.
thanks for the patch; pushed to the master and clutter-1.14 branches.