[glib/gresource-compiler-2-60] glib/gconstructor.h: Include stdlib.h for MSVC builds
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/gresource-compiler-2-60] glib/gconstructor.h: Include stdlib.h for MSVC builds
- Date: Wed, 24 Apr 2019 05:31:20 +0000 (UTC)
commit 42fe9a5bb0d2e977fc3f1bc4b4fed08fb15d23e3
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Apr 24 13:27:22 2019 +0800
glib/gconstructor.h: Include stdlib.h for MSVC builds
This is in case the compiler complains that we don't have the prototypes
for atexit(), and it doesn't hurt to include that file here.
glib/gconstructor.h | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/glib/gconstructor.h b/glib/gconstructor.h
index dccb0314c..603c2dde6 100644
--- a/glib/gconstructor.h
+++ b/glib/gconstructor.h
@@ -28,6 +28,8 @@
#elif defined (_MSC_VER) && (_MSC_VER >= 1500)
/* Visual studio 2008 and later has _Pragma */
+#include <stdlib.h>
+
#define G_HAS_CONSTRUCTORS 1
/* We do some weird things to avoid the constructors being optimized
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]