After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690835 - mingw build from git master fails with "no previous declaration for 'DllMain'"
mingw build from git master fails with "no previous declaration for 'DllMain'"
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: win32
git master
Other Windows
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2012-12-28 20:14 UTC by Wouter Paesen
Modified: 2013-01-16 22:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add prototype declaration for DllMain (877 bytes, patch)
2012-12-28 20:14 UTC, Wouter Paesen
committed Details | Review

Description Wouter Paesen 2012-12-28 20:14:57 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.
Comment 1 Emmanuele Bassi (:ebassi) 2012-12-28 21:29:20 UTC
Review of attachment 232350 [details] [review]:

interesting: we never needed it before, but looking at GTK+ it seems it's common.
Comment 2 Emmanuele Bassi (:ebassi) 2013-01-16 22:57:33 UTC
thanks for the patch; pushed to the master and clutter-1.14 branches.