[cogl/msvc-support-1.8] cogl-debug.h: Force export of variables
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/msvc-support-1.8] cogl-debug.h: Force export of variables
- Date: Fri, 23 Sep 2011 09:11:25 +0000 (UTC)
commit ef2b5cdaa3d2ab9b10754242e4011e5a1b569a8c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Sep 23 17:28:35 2011 +0800
cogl-debug.h: Force export of variables
Mark the 2 variables as dllexport/dllimport for MSVC compilation as that
is required to export the variables.
cogl/cogl-debug.h | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/cogl/cogl-debug.h b/cogl/cogl-debug.h
index 3c8c73a..4fe20cd 100644
--- a/cogl/cogl-debug.h
+++ b/cogl/cogl-debug.h
@@ -31,6 +31,16 @@
G_BEGIN_DECLS
+#ifdef _MSC_VER
+#ifdef COGL_BUILD_EXP
+#define COGL_EXP __declspec(dllexport)
+#else
+#define COGL_EXP __declspec(dllimport)
+#endif
+#else
+#define COGL_EXP
+#endif
+
typedef enum {
COGL_DEBUG_SLICING,
COGL_DEBUG_OFFSCREEN,
@@ -74,8 +84,8 @@ typedef enum {
#define COGL_DEBUG_N_INTS COGL_FLAGS_N_INTS_FOR_SIZE (COGL_DEBUG_N_FLAGS)
-extern unsigned int _cogl_debug_flags[COGL_DEBUG_N_INTS];
-extern GHashTable *_cogl_debug_instances;
+COGL_EXP extern unsigned int _cogl_debug_flags[COGL_DEBUG_N_INTS];
+COGL_EXP extern GHashTable *_cogl_debug_instances;
#define COGL_DEBUG_ENABLED(flag) \
COGL_FLAGS_GET (_cogl_debug_flags, flag)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]