[committed,wwwdocs] Add notes about <ctime> and <pthread.h> header dependencies
Commit Message
I backported a change to the <string> header which meant it no longer
includes <pthread.h>, which broke some (incorrect) packages. This
updates the GCC 12 docs to mention it.
Pushed to wwwdocs.
-- >8 --
Also fix missing closing tag for <p>.
---
htdocs/gcc-12/porting_to.html | 8 ++++++++
1 file changed, 8 insertions(+)
@@ -82,6 +82,12 @@ be included explicitly when compiled with GCC 12:
<li> <code><atomic></code>
(for <code>std::atomic</code>)
</li>
+<li> <code><ctime></code>
+ (for <code>std::time</code>, <code>std::mktime</code> etc.)
+</li>
+<li> <code><pthread.h></code>
+ (for <code>pthread_create</code>, <code>pthread_mutex_t</code> etc.)
+</li>
</ul>
<h3 id="cxx-deprecations">C++ Standard Library deprecations</h3>
@@ -109,6 +115,8 @@ GCC 12 now uses <code>OPERATION</code> as the name of the function to
the <code>CO_REDUCE</code> intrinsic for the pairwise reduction, thus
conforming to the Fortran 2018 standard. Previous versions
used <code>OPERATOR</code>, which conformed to TS 18508.
+</p>
+
<!--
<h2 id="links">Links</h2>
-->