<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 --- - PRAGMA_EXPORT_SUPPORTED defined incorrectly on OS X"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=77749">77749</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PRAGMA_EXPORT_SUPPORTED defined incorrectly on OS X
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>thakis@chromium.org
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>gl.h and osmesa.h define PRAGMA_EXPORT_SUPPORTED and then use "pragma export
on", "pragma export off" if that is defined.

#if (defined(__BEOS__) && defined(__POWERPC__)) || defined(__QUICKDRAW__)    
#  define PRAGMA_EXPORT_SUPPORTED        1    
#endif

On my mac, this ends up being true somehow (I suppose something ends up
defining __QUICKDRAW__), and then clang warns

../../third_party/mesa/src/include/GL/gl.h:124:9: warning: unknown pragma
ignored [-Wunknown-pragmas]
#pragma export on
        ^

It looks like this is only used for old platforms, so I'd suggest just removing
the whole "pragma export" stuff.</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>