[MacPorts] #50913: VLC @2.2.2: error: expected identifier or '('
MacPorts
noreply at macports.org
Tue Mar 22 05:11:36 PDT 2016
#50913: VLC @2.2.2: error: expected identifier or '('
----------------------+--------------------------------
Reporter: majoc@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords: yosemite
Port: VLC |
----------------------+--------------------------------
Comment (by rjvbertin@…):
Replying to [comment:12 majoc@…]:
> > Can you check in vlc_mist_picture.i.10-10 if you do have a definition
for _Static_assert.
So you only have the definition from vlc_fixups.h, apparently. Is there a
definition for _Static_assert in vlc_mist_picture.i.10.11 ?
I'm trying to figure out if that "function" is a built-in function (or
part of the syntax) or not. If it is, i.e. if the 10.11 preprocessed file
doesn't show an implementation, then it should be possible simply to
invoke _Static_assert instead of static_assert, in picture.c .
And of course if 10.11 provides an implementation for _Static_assert, we
could try to use that one.
> I'll try it, but more in hope than expectation. The macro makes more
sense now you explain it, though I can't see how it emits the message if
the assertion fails.
I think that the compiler prints an error message showing the original
code, not the preprocessed/expanded code (which is why it's often so
difficult to figure out errors in macros). There's thus no need for the
macro to do anything with the error message.
> Ay well: back to the day job.
Good for you :)
--
Ticket URL: <https://trac.macports.org/ticket/50913#comment:14>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list