[glib/wip/mutexes] disable glib-ctor on win32
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/mutexes] disable glib-ctor on win32
- Date: Mon, 19 Sep 2011 04:55:43 +0000 (UTC)
commit 3b7a5acef7a5a4cd080cbabc2cdcd297699bc5d8
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Sep 19 00:55:16 2011 -0400
disable glib-ctor on win32
It interacts pretty badly with the DllMain() work we do in
gthread-win32.c.
glib/glib-ctor.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/glib/glib-ctor.h b/glib/glib-ctor.h
index 12df4dd..d538c7d 100644
--- a/glib/glib-ctor.h
+++ b/glib/glib-ctor.h
@@ -1,6 +1,7 @@
#ifndef __GLIB_CTOR_H__
-#ifdef __GNUC__
+#if defined (__GNUC__) && !defined (_WIN32)
+#error break
#define GLIB_CTOR(func) \
__attribute__((constructor)) static void func (void)
#define GLIB_ENSURE_CTOR(func) G_STMT_START { } G_STMT_END
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]