head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.8 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.6 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.4 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.2 pkgsrc-2011Q2-base:1.3 pkgsrc-2010Q4:1.2.0.10 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.8 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.6 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.4 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.2 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.1.0.2 pkgsrc-2009Q3-base:1.1; locks; strict; comment @# @; 1.3 date 2011.02.03.22.24.45; author wiz; state dead; branches; next 1.2; 1.2 date 2009.11.13.14.45.25; author wiz; state Exp; branches; next 1.1; 1.1 date 2009.09.01.15.20.19; author wiz; state Exp; branches; next ; desc @@ 1.3 log @Remove sdlmame and sdlmess, replaced by mame and mess, respectively. Add mame+mess to category Makefile. @ text @$NetBSD: patch-ac,v 1.2 2009/11/13 14:45:25 wiz Exp $ --- src/emu/mamecore.h.orig 2009-11-01 00:44:54.000000000 +0000 +++ src/emu/mamecore.h @@@@ -9,7 +9,7 @@@@ ***************************************************************************/ -#pragma once + #ifndef __MAMECORE_H__ #define __MAMECORE_H__ @@@@ -333,6 +333,10 @@@@ DECL_NORETURN void CLIB_DECL fatalerror_ INLINE FUNCTIONS ***************************************************************************/ +#if defined(__NetBSD__) +#include +#endif +#if !defined(__NetBSD__) || (__NetBSD_Version__ < 599001500) /* population count */ INLINE int popcount(UINT32 val) { @@@@ -342,6 +346,7 @@@@ INLINE int popcount(UINT32 val) val &= val - 1; return count; } +#endif /* convert a series of 32 bits into a float */ @ 1.2 log @Update to 0.135: All the best new stuff from MAME 0.135! @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.1 2009/09/01 15:20:19 wiz Exp $ @ 1.1 log @NetBSD-current provides popcount, avoid conflict. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- src/emu/mamecore.h.orig 2009-09-01 14:40:54.000000000 +0000 d5 9 @