diff options
author | joerg <joerg@pkgsrc.org> | 2012-08-10 18:04:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-08-10 18:04:53 +0000 |
commit | e6e2fca3c87f0d5e78e5c0e08d0cf342d8f5da3b (patch) | |
tree | 49d82cdd3e5c949d08e1f88ac87f3d3cef10d201 /games/mirrormagic-sdl | |
parent | 0d5ce325704d3555d29c01f7fb647d2db6cd997b (diff) | |
download | pkgsrc-e6e2fca3c87f0d5e78e5c0e08d0cf342d8f5da3b.tar.gz |
Fix inline usage.
Diffstat (limited to 'games/mirrormagic-sdl')
-rw-r--r-- | games/mirrormagic-sdl/distinfo | 5 | ||||
-rw-r--r-- | games/mirrormagic-sdl/patches/patch-src_libgame_misc.h | 15 | ||||
-rw-r--r-- | games/mirrormagic-sdl/patches/patch-src_libgame_sdl.h | 36 | ||||
-rw-r--r-- | games/mirrormagic-sdl/patches/patch-src_libgame_system.h | 20 |
4 files changed, 75 insertions, 1 deletions
diff --git a/games/mirrormagic-sdl/distinfo b/games/mirrormagic-sdl/distinfo index 6d1c2c02f81..62fc88b9a6a 100644 --- a/games/mirrormagic-sdl/distinfo +++ b/games/mirrormagic-sdl/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.4 2007/04/03 16:57:06 dillo Exp $ +$NetBSD: distinfo,v 1.5 2012/08/10 18:04:53 joerg Exp $ SHA1 (mirrormagic-2.0.2.tar.gz) = bce7fbf163d5177f59ba4f516b06a3ebb7cc3927 RMD160 (mirrormagic-2.0.2.tar.gz) = 57de928f2b37575886ddb5cbafcababf9de765dc @@ -7,3 +7,6 @@ SHA1 (patch-aa) = 130a36ed3aea3f445dbccc0b6b45b7aa198bca12 SHA1 (patch-ab) = abc9e8b8ed66225b50a398e287d94dfa1b728365 SHA1 (patch-ac) = 2dd983a8f2a82f80226b902af28f5c29011e42e3 SHA1 (patch-ad) = ebda01ff3f6dde6f56073e6ab8848d96110e17dd +SHA1 (patch-src_libgame_misc.h) = a226378ea6dc7f4a16f8e65ae42df4ff04ccc1fb +SHA1 (patch-src_libgame_sdl.h) = ce296d857d83f729a06b4e98bc33de218ff637ce +SHA1 (patch-src_libgame_system.h) = a2129a503f3ea0eb49fb0721356cb6477684c03b diff --git a/games/mirrormagic-sdl/patches/patch-src_libgame_misc.h b/games/mirrormagic-sdl/patches/patch-src_libgame_misc.h new file mode 100644 index 00000000000..62591681a0b --- /dev/null +++ b/games/mirrormagic-sdl/patches/patch-src_libgame_misc.h @@ -0,0 +1,15 @@ +$NetBSD: patch-src_libgame_misc.h,v 1.1 2012/08/10 18:04:53 joerg Exp $ + +--- src/libgame/misc.h.orig 2012-08-10 12:06:04.000000000 +0000 ++++ src/libgame/misc.h +@@ -137,8 +137,8 @@ void dumpLevelDirInfo(struct LevelDirInf + void sortLevelDirInfo(struct LevelDirInfo **, + int (*compare_function)(const void *, const void *)); + +-inline void swap_numbers(int *, int *); +-inline void swap_number_pairs(int *, int *, int *, int *); ++void swap_numbers(int *, int *); ++void swap_number_pairs(int *, int *, int *, int *); + + char *getUserDataDir(void); + char *getSetupDir(void); diff --git a/games/mirrormagic-sdl/patches/patch-src_libgame_sdl.h b/games/mirrormagic-sdl/patches/patch-src_libgame_sdl.h new file mode 100644 index 00000000000..2924279ed4c --- /dev/null +++ b/games/mirrormagic-sdl/patches/patch-src_libgame_sdl.h @@ -0,0 +1,36 @@ +$NetBSD: patch-src_libgame_sdl.h,v 1.1 2012/08/10 18:04:53 joerg Exp $ + +--- src/libgame/sdl.h.orig 2012-08-10 12:21:02.000000000 +0000 ++++ src/libgame/sdl.h +@@ -314,20 +314,20 @@ struct XY + + /* SDL function definitions */ + +-inline void SDLInitVideoDisplay(void); +-inline void SDLInitVideoBuffer(DrawBuffer **, DrawWindow **, boolean); +-inline boolean SDLSetVideoMode(DrawBuffer **, boolean); +-inline void SDLCopyArea(Bitmap *, Bitmap *, int, int, int, int, int, int, int); +-inline void SDLFillRectangle(Bitmap *, int, int, int, int, unsigned int); +-inline void SDLDrawSimpleLine(Bitmap *, int, int, int, int, unsigned int); +-inline void SDLDrawLine(Bitmap *, int, int, int, int, Uint32); +-inline Pixel SDLGetPixel(Bitmap *, int, int); ++void SDLInitVideoDisplay(void); ++void SDLInitVideoBuffer(DrawBuffer **, DrawWindow **, boolean); ++boolean SDLSetVideoMode(DrawBuffer **, boolean); ++void SDLCopyArea(Bitmap *, Bitmap *, int, int, int, int, int, int, int); ++void SDLFillRectangle(Bitmap *, int, int, int, int, unsigned int); ++void SDLDrawSimpleLine(Bitmap *, int, int, int, int, unsigned int); ++void SDLDrawLine(Bitmap *, int, int, int, int, Uint32); ++Pixel SDLGetPixel(Bitmap *, int, int); + + Bitmap *SDLLoadImage(char *); + +-inline void SDLOpenAudio(void); +-inline void SDLCloseAudio(void); ++void SDLOpenAudio(void); ++void SDLCloseAudio(void); + +-inline void SDLNextEvent(Event *); ++void SDLNextEvent(Event *); + + #endif /* SDL_H */ diff --git a/games/mirrormagic-sdl/patches/patch-src_libgame_system.h b/games/mirrormagic-sdl/patches/patch-src_libgame_system.h new file mode 100644 index 00000000000..935e2f159c6 --- /dev/null +++ b/games/mirrormagic-sdl/patches/patch-src_libgame_system.h @@ -0,0 +1,20 @@ +$NetBSD: patch-src_libgame_system.h,v 1.1 2012/08/10 18:04:53 joerg Exp $ + +--- src/libgame/system.h.orig 2002-03-19 02:42:52.000000000 +0000 ++++ src/libgame/system.h +@@ -278,6 +278,8 @@ void InitGfxDoor1Info(int, int, int, int + void InitGfxDoor2Info(int, int, int, int); + void InitGfxScrollbufferInfo(int, int); + ++#define inline ++ + inline void InitVideoDisplay(void); + inline void CloseVideoDisplay(void); + inline void InitVideoBuffer(DrawBuffer **,DrawWindow **, int,int,int, boolean); +@@ -315,4 +317,6 @@ inline void NextEvent(Event *event); + inline Key GetEventKey(KeyEvent *, boolean); + inline boolean CheckCloseWindowEvent(ClientMessageEvent *); + ++#undef inline ++ + #endif /* SYSTEM_H */ |