mirror of
https://github.com/nmap/nmap.git
synced 2026-09-06 02:21:37 +00:00
Fix Windows build: __cplusplus inaccurate on MSVC
This commit is contained in:
parent
11d9cfc2d5
commit
2c7de4b6b3
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@
|
|||
#ifndef static_assert
|
||||
# if defined(__cplusplus)
|
||||
// If C++ but older than C++11
|
||||
# if __cplusplus < 201103L
|
||||
# if __cplusplus < 201103L && !(defined(_MSVC_LANG) && _MSVC_LANG >= 201103L)
|
||||
# include <cassert>
|
||||
# define static_assert(expr, msg) assert((expr) && (msg))
|
||||
# endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue