<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 --- - Don't provide inline definitions of functions available in MSVS 2013's standard library"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75336">75336</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Don't provide inline definitions of functions available in MSVS 2013's standard library
</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>hans@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>Other
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>MSVS 2013 provides functions that were previously not available in the standard
library. Mesa provides inline definitions for these when _MSC_VER is set. For
example,
<a href="http://cgit.freedesktop.org/mesa/mesa/tree/src/mesa/main/imports.h#n136">http://cgit.freedesktop.org/mesa/mesa/tree/src/mesa/main/imports.h#n136</a>
Clang warns about this "non-static declaration followed by static declaration"
situation:
..\..\third_party\mesa\src\src\mesa\main/imports.h(148,20) : warning(clang):
static declaration of 'truncf' follows non-static declaration
static inline float truncf(float x) { return x < 0.0f ? ceilf(x) : floorf(x); }
^
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(597,22) :
note(clang): previous declaration is here
_CRTIMP float __cdecl truncf(_In_ float _X);
^
These declarations should probably be guarded by #if _MSC_VER < 1800.
(Chromium worked around the warning here:
<a href="http://src.chromium.org/viewvc/chrome?revision=252594&view=revision">http://src.chromium.org/viewvc/chrome?revision=252594&view=revision</a>)</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>