diff dmmutex.h @ 285:245b15cd1919

Don't link libSDL uselessly to utilities that do not actually use it. Provide a fake implementation of SDL mutexes to satisfy the requirement of having the functions around -- as these utilities do not actually use threading, it does not matter if the mutexes actually work.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 11 Oct 2012 10:07:59 +0300
parents
children dd9809a93425
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dmmutex.h	Thu Oct 11 10:07:59 2012 +0300
@@ -0,0 +1,28 @@
+/*
+ * DMLib
+ * -- Bogus implementations of SDL mutex functions
+ * Programmed and designed by Matti 'ccr' Hamalainen
+ * (C) Copyright 2012 Tecnic Software productions (TNSP)
+ */
+
+int SDL_mutexP(DMMutex *p)
+{
+    (void) p;
+    return 0;
+}
+
+int SDL_mutexV(DMMutex *p)
+{
+    (void) p;
+    return 0;
+}
+
+DMMutex * SDL_CreateMutex()
+{
+    return NULL;
+}
+
+void SDL_DestroyMutex(DMMutex *p)
+{
+    (void) p;
+}