Date: Tue, 10 Mar 2009 16:01:05 +0300 From: Anonymous <swell.k@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/132498: [patch] emulators/sdlmame: fix compilation with gcc44: #elif with no expression Message-ID: <86wsaxcz1q.fsf@gmail.com> Resent-Message-ID: <200903101310.n2ADA1Oo027212@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 132498 >Category: ports >Synopsis: [patch] emulators/sdlmame: fix compilation with gcc44: #elif with no expression >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 10 13:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Anonymous >Release: FreeBSD 8.0-CURRENT amd64 >Organization: >Environment: >Description: > cd emulators/sdlmame; make ... Compiling src/mame/video/model2.c... In file included from src/mame/video/model2.c:870: src/mame/video/model2rd.c:51:6: error: #elif with no expression In file included from src/mame/video/model2.c:877: src/mame/video/model2rd.c:51:6: error: #elif with no expression In file included from src/mame/video/model2.c:884: src/mame/video/model2rd.c:51:6: error: #elif with no expression In file included from src/mame/video/model2.c:891: src/mame/video/model2rd.c:51:6: error: #elif with no expression In file included from src/mame/video/model2.c:898: src/mame/video/model2rd.c:51:6: error: #elif with no expression In file included from src/mame/video/model2.c:905: src/mame/video/model2rd.c:51:6: error: #elif with no expression In file included from src/mame/video/model2.c:912: src/mame/video/model2rd.c:51:6: error: #elif with no expression In file included from src/mame/video/model2.c:919: src/mame/video/model2rd.c:51:6: error: #elif with no expression gmake: *** [obj/sdl/mame/mame/video/model2.o] Error 1 *** Error code 2 >How-To-Repeat: $ cat a.c #ifdef BLAH #elif #endif $ cc -E -DBLAH a.c # 1 "a.c" # 1 "<built-in>" # 1 "<command-line>" # 1 "a.c" $ gcc44 -E -DBLAH a.c # 1 "a.c" # 1 "<built-in>" # 1 "<command-line>" # 1 "a.c" a.c:2:6: error: #elif with no expression However, if you don't define BLAH then cc from base complains, too. >Fix: --- sdlmame.diff begins here --- Index: emulators/sdlmame/files/patch-src-mame-video-model2rd.c =================================================================== RCS file: emulators/sdlmame/files/patch-src-mame-video-model2rd.c diff -N emulators/sdlmame/files/patch-src-mame-video-model2rd.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ emulators/sdlmame/files/patch-src-mame-video-model2rd.c 10 Mar 2009 12:04:03 -0000 @@ -0,0 +1,11 @@ +--- src/mame/video/model2rd.c~ ++++ src/mame/video/model2rd.c +@@ -48,7 +48,7 @@ + #define MODEL2_CHECKER + #define MODEL2_TEXTURED + #define MODEL2_TRANSLUCENT +-#elif ++#else + #error "Model 2 renderer: Invalif function selected!" + #endif + --- sdlmame.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86wsaxcz1q.fsf>