diff options
author | Eion Robb <eion@robbmob.com> | 2008-01-16 01:50:45 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2008-01-16 01:50:45 +0300 |
commit | d1edc887ab34cf45eb6e533258d50fa3e3576659 (patch) | |
tree | 03cf93d4b971c5b57e88d08c9930ce69809246f0 /skype_messaging.c | |
parent | 6e19933e023005ae7fa6e4939bbf3208688c7627 (diff) |
Added #ifdef _WIN32 to fix compile on linux
Diffstat (limited to 'skype_messaging.c')
-rw-r--r-- | skype_messaging.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/skype_messaging.c b/skype_messaging.c index ef3e6c1..4a0a594 100644 --- a/skype_messaging.c +++ b/skype_messaging.c @@ -40,7 +40,8 @@ typedef struct { static GHashTable *message_queue = NULL;
static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
-
+ +#ifdef _WIN32
//these two #defines override g_static_mutex_lock and
// g_static_mutex_unlock so as to remove "strict-aliasing"
// compiler warnings
@@ -48,6 +49,10 @@ static GStaticMutex mutex = G_STATIC_MUTEX_INIT; g_mutex_lock (g_static_mutex_get_mutex ((GMutex **)(void*)mutex))
#define g_static_mutex_unlock2(mutex) \
g_mutex_unlock (g_static_mutex_get_mutex ((GMutex **)(void*)mutex))
+#else +#define g_static_mutex_lock2 g_static_mutex_lock +#define g_static_mutex_unlock2 g_static_mutex_unlock +#endif static void
skype_message_received(char *orig_message)
|