History

C11, section 7.2: The macro static_assert expands to _Static_assert. This macro was missing on Windows

Christian Jullien committed 6 years ago

Commit 0d6801b1 parent 26904251 file · +5 −0Browse files

Unified · Split

win32/include/assert.h+5−0
@@ -54,4 +54,9 @@ extern void __cdecl _assert(const char *, const char *, unsigned); · 53 unmodified lines
54 54
55#endif55#endif
56 56
57#if (__STDC_VERSION__ >= 201112L) && !defined(static_assert)
58/* C11, section 7.2: The macro static_assert expands to _Static_assert. */
59#define static_assert(exp, str) _Static_assert(exp, str)
60#endif
61
57#endif62#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t