mirror of
https://github.com/g-truc/glm.git
synced 2026-08-03 03:48:56 +00:00
Deprecate C++98 to 14
This commit is contained in:
@@ -14,11 +14,10 @@ struct vec2
|
||||
x(0), y(0)
|
||||
{}
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if (GLM_COMPILER & GLM_COMPILER_VC)
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union
|
||||
#endif
|
||||
#if GLM_COMPILER & GLM_COMPILER_CLANG
|
||||
#elif (GLM_COMPILER & GLM_COMPILER_CLANG)
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
|
||||
# pragma clang diagnostic ignored "-Wnested-anon-types"
|
||||
@@ -30,11 +29,10 @@ struct vec2
|
||||
struct { swizzleStruct xx; };
|
||||
};
|
||||
|
||||
#if GLM_COMPILER & GLM_COMPILER_CLANG
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
#if defined(_MSC_VER)
|
||||
#if (GLM_COMPILER & GLM_COMPILER_VC)
|
||||
# pragma warning(pop)
|
||||
#elif (GLM_COMPILER & GLM_COMPILER_CLANG)
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user