[glib] disable glib-ctor on win32
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] disable glib-ctor on win32
- Date: Wed, 21 Sep 2011 20:21:03 +0000 (UTC)
commit abba53e39630fd9df7249e239db06b391ba1f47a
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Sep 19 00:55:16 2011 -0400
disable glib-ctor on win32
glib/glib-ctor.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/glib-ctor.h b/glib/glib-ctor.h
index 12df4dd..a7584ea 100644
--- a/glib/glib-ctor.h
+++ b/glib/glib-ctor.h
@@ -1,6 +1,6 @@
#ifndef __GLIB_CTOR_H__
-#ifdef __GNUC__
+#if defined (__GNUC__) && !defined (_WIN32)
#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]