From 2aab765b36e3895a251ad11bae5d5f97bf3f31cc Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Mon, 24 Aug 2020 17:51:01 -0700
Subject: [PATCH] Fix NOGME compiling

(cherry picked from commit 0d57ba1d02c5bde2ab22a71d21a95849b21e9539)
---
 src/sdl/mixer_sound.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c
index ef34b266df..25e7fde898 100644
--- a/src/sdl/mixer_sound.c
+++ b/src/sdl/mixer_sound.c
@@ -220,6 +220,7 @@ static void var_cleanup(void)
 	internal_volume = 100;
 }
 
+#if defined (HAVE_LIBGME) && defined (HAVE_ZLIB)
 static const char* get_zlib_error(int zErr)
 {
 	switch (zErr)
@@ -240,6 +241,7 @@ static const char* get_zlib_error(int zErr)
 			return "unknown error";
 	}
 }
+#endif
 
 /// ------------------------
 /// Audio System
-- 
GitLab