Commit a5a25c71 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Fix build on non MSVC compilers

parent c43aa0f2
......@@ -63,7 +63,7 @@ public:
AsNode,
};
// To be able to write Media::FromLocation
#if _MSC_VER >= 1900
#if !defined(_MSC_VER) || _MSC_VER >= 1900
constexpr static FromType FromPath = FromType::FromPath;
constexpr static FromType FromLocation = FromType::FromLocation;
constexpr static FromType AsNode = FromType::AsNode;
......
......@@ -87,7 +87,7 @@ namespace VLC
};
template <typename Func>
struct signature_match_or_nullptr<nullptr_t, Func> : std::true_type
struct signature_match_or_nullptr<std::nullptr_t, Func> : std::true_type
{
};
......
......@@ -87,7 +87,7 @@ public:
Video,
Subtitle
};
#if _MSC_VER >= 1900
#if !defined(_MSC_VER) || _MSC_VER >= 1900
constexpr static Type Unknown = Type::Unknown;
constexpr static Type Audio = Type::Audio;
constexpr static Type Video = Type::Video;
......
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