| Summary: | [patch] emulators/sdlmame: fix compilation with gcc44: #elif with no expression | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | swell.k <swell.k> | ||||
| Component: | Individual Port(s) | Assignee: | Alejandro Pulver <alepulver> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Responsible Changed From-To: freebsd-ports-bugs->alepulver Over to maintainer (via the GNATS Auto Assign Tool) State Changed From-To: open->closed Port has been updated recently, and does not have similar code. |
> 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.