gconstructor: Work around constructors being optimized away on MSVC
Whole program optimization is enabled by default in visual studio release builds, and this causes constructors (for e.g. resources) to be optimized away as they are not referenced from elsewhere. This works around this by some pragma magic. https://bugzilla.gnome.org/show_bug.cgi?id=752837
parent
228ad1ed
-
mentioned in merge request fasterthanlime/glib!1
-
mentioned in merge request !3589 (merged)
Please register or sign in to comment