libretro-np2kai: Fix build on NetBSD (also it does more than build,

I tested Touhou.)
This commit is contained in:
Nia Alarie 2017-11-27 22:09:54 +00:00
parent 75f8867547
commit a274f9c084
2 changed files with 26 additions and 0 deletions

View File

@ -4,3 +4,4 @@ SHA1 (libretro-np2kai-0.14.tar.gz) = c95b625a5575eae5f2d87c8b7617a24ec07965b4
RMD160 (libretro-np2kai-0.14.tar.gz) = f604aaa6da44ec16af3dd93a983f573cbe1d3e91
SHA512 (libretro-np2kai-0.14.tar.gz) = cb15ebbe07ea483be48b3725663f05d0084d6661ae08b7669329d3511fe2a30a115532166716393594b5916d9e84323ca2a42bc098cacc350b9428d2795a6273
Size (libretro-np2kai-0.14.tar.gz) = 1932048 bytes
SHA1 (patch-sound_mame_driver.h) = e4ccfe7482bae5fba2d911e355578a6779af7242

View File

@ -0,0 +1,25 @@
$NetBSD$
Fix build on NetBSD (symbol collisions...)
--- sound/mame/driver.h.orig 2017-10-21 10:00:34.000000000 +0000
+++ sound/mame/driver.h
@@ -8,17 +8,7 @@
#define HAS_Y8950 1
#define HAS_YMF262 1
-#if defined(_MSC_VER)
-#pragma warning(disable: 4244)
-#pragma warning(disable: 4245)
-#define INLINE __inline static
-#elif defined(__BORLANDC__)
-#define INLINE __inline
-#elif defined(__GNUC__)
-#define INLINE __inline__
-#else
-#define INLINE static
-#endif
+#define INLINE static inline
#define logerror(x,y,z)
//typedef signed int stream_sample_t;