File 0003-define-Linux-options.patch of Package wangemu

From d442268083bc6a15975795cf30ab0900b55a6325 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Fri, 3 Oct 2025 10:30:41 +0200
Subject: [PATCH 03/11] define Linux options
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
---
 src/compile_options.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/compile_options.h b/src/compile_options.h
index d202486..15e2f2e 100644
--- a/src/compile_options.h
+++ b/src/compile_options.h
@@ -42,9 +42,12 @@
     // this really isn't a choice. wxSound on OSX doesn't support an
     // internally generated wav file.
     #define USE_FILE_BEEPS 1
-#else
+#elif defined(__WXMSW__)
     #define DRAW_WITH_RAWBMP 0
     #define USE_FILE_BEEPS 0
+#else /* assume Linux */
+    #define DRAW_WITH_RAWBMP 1
+    #define USE_FILE_BEEPS 1
 #endif
 
 // ========================================================================
-- 
2.51.0

openSUSE Build Service is sponsored by