Skip to content

Commit 7db2888

Browse files
Add anti-YAGNI clarifying comment to src/win32_shim.h
1 parent ecced12 commit 7db2888

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/win32_shim.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#ifndef WIN32_SHIM_H
22
#define WIN32_SHIM_H
33

4+
// DO NOT REMOVE: Clang on Windows with --driver-mode=cl does NOT provide
5+
// <threads.h>. MSVC does since VS 2015, but the UCRT shipped with Clang-cl
6+
// lacks a conforming C11 threads implementation. This file reimplements
7+
// <threads.h> using Win32 primitives and is required for all builds.
8+
49
#ifdef _WIN32
510

611
#define WIN32_LEAN_AND_MEAN

0 commit comments

Comments
 (0)