Commit c783af75 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Pretend MSVC supports feature test macros

parent 720456e8
......@@ -23,6 +23,10 @@
#ifdef __has_include
#if __has_include(<optional>)
#include <optional>
#if defined(_MSC_VER) && !defined(__cpp_lib_optional)
// Pretend MSVC supports feature test macros
#define __cpp_lib_optional 1
#endif
#endif
#if !defined(__cpp_lib_optional) && __has_include(<experimental/optional>)
#include <experimental/optional>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment