Bug 93027

Summary: configure should check whether __typeof__ needs to be used for typeof or not
Product: cairo Reporter: Richard PALO <richard.palo>
Component: generalAssignee: Chris Wilson <chris>
Status: RESOLVED MOVED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:
Attachments: add AC_C_TYPEOF to configure.ac

Description Richard PALO 2015-11-19 21:20:32 UTC
Created attachment 119953 [details]
add AC_C_TYPEOF to configure.ac

configure should check to see via AC_C_TYPEOF whether __typeof__ needs to be used, in particular useful with strict ISO c options such as -std=c99

Please consider the attached patch
Comment 1 Bryce Harrington 2017-11-06 19:36:22 UTC
Thanks, fix pushed:

To ssh://git.freedesktop.org/git/cairo
   3322580..8d89fc5  master -> master

commit 8d89fc573eae0bc0234e1b909932e405a776b7e1
Author:     Bryce Harrington <bryce@osg.samsung.com>
AuthorDate: Mon Nov 6 11:28:58 2017 -0800
Commit:     Bryce Harrington <bryce@osg.samsung.com>
CommitDate: Mon Nov 6 11:35:24 2017 -0800

    configure: Check for typeof

    Check via the AC_C_TYPEOF macro if GCC's typeof is available.  If it is
    available via a different spelling, define typeof to that spelling.

    Patch from and issue reported by Richard Palo.

    Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=93027
Comment 2 GitLab Migration User 2018-08-25 13:36:25 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/93.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.