Merge branch 'gconstrutor-h-stdlib-h-msvc' into 'master'

glib/gconstructor.h: Include stdlib.h for MSVC builds

See merge request GNOME/glib!791
This commit is contained in:
Philip Withnall 2019-04-29 12:10:52 +00:00
commit 1c77c93e81

View File

@ -28,6 +28,8 @@
#elif defined (_MSC_VER) && (_MSC_VER >= 1500) #elif defined (_MSC_VER) && (_MSC_VER >= 1500)
/* Visual studio 2008 and later has _Pragma */ /* Visual studio 2008 and later has _Pragma */
#include <stdlib.h>
#define G_HAS_CONSTRUCTORS 1 #define G_HAS_CONSTRUCTORS 1
/* We do some weird things to avoid the constructors being optimized /* We do some weird things to avoid the constructors being optimized