<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - "private" member variable in weston_surface struct is a reserved keyword in C++"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=63485">63485</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"private" member variable in weston_surface struct is a reserved keyword in C++
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>blocker
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ullysses.a.eoff@intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.0.x
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>weston
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>"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 <<a href="mailto:giuliocamuffo@gmail.com">giuliocamuffo@gmail.com</a>>
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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>