openbsd-ports/emulators/vba/patches/patch-src_Port_h
jasper 1117b477c7 import vba 1.7.2
VisualBoyAdvance is an emulator for Nintendo's Gameboy Advance. It also
supports emulation of the Gameboy (classic), Gameboy Pocket, Gameboy
Color and Gameboy Advance SP.

Some of the main features are:
- option to use BIOS file
- zip/gzip file support
- graphic filters Normal, TV Mode, 2xSaI, Super 2xSaI and more
- interframe blending support
- built-in ARM/THUMB assembly debugger
- 10 save states accesible through keyboard
- automatic battery file load/save
- auto-fire support
- 16, 24 and 32 bit desktop support
- GDB remote debugging
- AGBPrint support for development
- RTC support

with a tweak from Gleydson Soares
2007-09-28 14:18:17 +00:00

23 lines
503 B
Plaintext

$OpenBSD: patch-src_Port_h,v 1.1.1.1 2007/09/28 14:18:17 jasper Exp $
--- src/Port.h.orig Tue Sep 18 21:26:36 2007
+++ src/Port.h Tue Sep 18 21:56:04 2007
@@ -20,18 +20,6 @@
#ifndef VBA_PORT_H
#define VBA_PORT_H
-// swaps a 16-bit value
-static inline u16 swap16(u16 v)
-{
- return (v<<8)|(v>>8);
-}
-
-// swaps a 32-bit value
-static inline u32 swap32(u32 v)
-{
- return (v<<24)|((v<<8)&0xff0000)|((v>>8)&0xff00)|(v>>24);
-}
-
#ifdef WORDS_BIGENDIAN
#if defined(__GNUC__) && defined(__ppc__)