pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wip/fs-uae and PySide



On Tue 12 Nov 2013 at 17:41:38 +0100, Rhialto wrote:
> It must be the line "#if __STDC__ || defined(__cplusplus)" where the
> condition evaluates to false instead of true.

Bug reported at https://bugreports.qt-project.org/browse/PYSIDE-206 .

It turns out that macro expansion is done before the evaluator sees
these tokens, so the preprocessed line looks like

#if || defined(__cplusplus)

which is a syntax error and evaluates to false.

It seems that the code which suppresses macro expansion following the
word "defined" is always active, and not just in preprocessor
directives. But that is another bug (I haven't verified it).

The patch is simple (#define __STDC__ 1).

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

Attachment: pgpDbAibzlrki.pgp
Description: PGP signature

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index