mirror of
https://github.com/holub/mame
synced 2025-05-17 03:10:43 +03:00
naomibd: Fix collision with system macro on NetBSD [Thomas Klausner]
This commit is contained in:
parent
e71e4635c1
commit
7ac5373f3c
@ -516,14 +516,14 @@ static void naomibd_m1_decode(naomibd_state *naomibd)
|
||||
|
||||
// Streaming M2/M3 protection and decompression
|
||||
|
||||
INLINE UINT16 bswap16(UINT16 in)
|
||||
INLINE UINT16 naomi_bswap16(UINT16 in)
|
||||
{
|
||||
return ((in>>8) | (in<<8));
|
||||
}
|
||||
|
||||
static UINT16 naomibd_get_decrypted_stream(naomibd_state *naomibd)
|
||||
{
|
||||
UINT16 wordn = bswap16(naomibd->prot.ptr[naomibd->prot.count++]);
|
||||
UINT16 wordn = naomi_bswap16(naomibd->prot.ptr[naomibd->prot.count++]);
|
||||
|
||||
naomibd->prot.aux_word = block_decrypt(naomibd->dc_gamekey, naomibd->dc_seqkey, naomibd->prot.seed++, wordn);
|
||||
wordn = (naomibd->prot.last_word&~3) | (naomibd->prot.aux_word&3);
|
||||
|
Loading…
Reference in New Issue
Block a user