[Wayland-bugs] [Bug 63485] New: "private" member variable in weston_surface struct is a reserved keyword in C++

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Apr 12 11:48:36 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=63485

          Priority: medium
            Bug ID: 63485
          Assignee: wayland-bugs at lists.freedesktop.org
           Summary: "private" member variable in weston_surface struct is
                    a reserved keyword in C++
          Severity: blocker
    Classification: Unclassified
                OS: All
          Reporter: ullysses.a.eoff at intel.com
          Hardware: Other
            Status: NEW
           Version: 1.0.x
         Component: weston
           Product: Wayland

"private" is a reserved keyword in C++...

"weston/compositor.h" cannot be included in a C++ program because "struct
weston_surface" has a member variable named "private"... thus preventing the
C++ program from compiling:

install/include/weston/compositor.h:503:8: error: expected unqualified-id
before 'private'
install/include/weston/compositor.h:503:7: error: expected ';' at end of member
declaration
install/include/weston/compositor.h:503:15: error: expected ':' before ';'
token

This was fixed on "master" with the following patch and needs to be backported
to the "1.0" branch:

commit 7fe01b18d89ad8d59d0c6285d37e70004606b76f
Author: Giulio Camuffo <giuliocamuffo at gmail.com>
Date:   Thu Mar 28 18:02:42 2013 +0100

    sdk: be C++ friendly

    This renames the weston_surface's private member to configure_private
    and externs "C" the headers of the SDK.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20130412/1e50f3ca/attachment.html>


More information about the Wayland-bugs mailing list