Skip to content
Commit db4df990 authored by Chun-wei Fan's avatar Chun-wei Fan
Browse files

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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment