shithub: choc

Download patch

ref: fa64e348b538562d7e063a6955db461f5c36bbb5
parent: 038e7b63142e3d5699650dcffb7cf624d2b0d9f3
author: Turo Lamminen <turol@iki.fi>
date: Wed Sep 7 08:29:10 EDT 2022

opl: Move opl_driver_t extern declarations to opl_internal.h

--- a/opl/opl.c
+++ b/opl/opl.c
@@ -28,16 +28,6 @@
 
 //#define OPL_DEBUG_TRACE
 
-#if (defined(__i386__) || defined(__x86_64__)) && defined(HAVE_IOPERM)
-extern opl_driver_t opl_linux_driver;
-#endif
-#if defined(HAVE_LIBI386) || defined(HAVE_LIBAMD64)
-extern opl_driver_t opl_openbsd_driver;
-#endif
-#ifdef _WIN32
-extern opl_driver_t opl_win32_driver;
-#endif
-extern opl_driver_t opl_sdl_driver;
 
 static opl_driver_t *drivers[] =
 {
--- a/opl/opl_internal.h
+++ b/opl/opl_internal.h
@@ -54,5 +54,18 @@
 
 extern unsigned int opl_sample_rate;
 
+
+#if (defined(__i386__) || defined(__x86_64__)) && defined(HAVE_IOPERM)
+extern opl_driver_t opl_linux_driver;
+#endif
+#if defined(HAVE_LIBI386) || defined(HAVE_LIBAMD64)
+extern opl_driver_t opl_openbsd_driver;
+#endif
+#ifdef _WIN32
+extern opl_driver_t opl_win32_driver;
+#endif
+extern opl_driver_t opl_sdl_driver;
+
+
 #endif /* #ifndef OPL_INTERNAL_H */