mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Added Visual C++ 2019 detection
This commit is contained in:
parent
d162eee1e6
commit
229b762c31
@ -7,8 +7,8 @@
|
||||
#define GLM_VERSION_MINOR 9
|
||||
#define GLM_VERSION_PATCH 9
|
||||
#define GLM_VERSION_REVISION 4
|
||||
#define GLM_VERSION 995
|
||||
#define GLM_VERSION_MESSAGE "GLM: version 0.9.9.5"
|
||||
#define GLM_VERSION 996
|
||||
#define GLM_VERSION_MESSAGE "GLM: version 0.9.9.6"
|
||||
|
||||
#define GLM_SETUP_INCLUDED GLM_VERSION
|
||||
|
||||
|
@ -60,6 +60,7 @@
|
||||
#define GLM_COMPILER_VC15_5 0x01000005
|
||||
#define GLM_COMPILER_VC15_6 0x01000006
|
||||
#define GLM_COMPILER_VC15_7 0x01000007
|
||||
#define GLM_COMPILER_VC16 0x01000008
|
||||
|
||||
// GCC defines
|
||||
#define GLM_COMPILER_GCC 0x02000000
|
||||
@ -180,8 +181,10 @@
|
||||
# define GLM_COMPILER GLM_COMPILER_VC15_5
|
||||
# elif _MSC_VER == 1913
|
||||
# define GLM_COMPILER GLM_COMPILER_VC15_6
|
||||
# elif _MSC_VER >= 1914
|
||||
# elif _MSC_VER == 1914
|
||||
# define GLM_COMPILER GLM_COMPILER_VC15_7
|
||||
# elif _MSC_VER >= 1920
|
||||
# define GLM_COMPILER GLM_COMPILER_VC16
|
||||
# endif//_MSC_VER
|
||||
|
||||
// G++
|
||||
|
@ -52,6 +52,10 @@ glm::mat4 camera(float Translate, glm::vec2 const& Rotate)
|
||||
|
||||
## Release notes
|
||||
|
||||
### [GLM 0.9.9.6](https://github.com/g-truc/glm/tree/master)
|
||||
#### Improvements:
|
||||
- Added Visual C++ 2019 detection
|
||||
|
||||
### [GLM 0.9.9.5](https://github.com/g-truc/glm/releases/tag/0.9.9.5) - 2019-04-01
|
||||
#### Fixes:
|
||||
- Fixed build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883
|
||||
|
@ -31,6 +31,9 @@ int test_compiler()
|
||||
case GLM_COMPILER_VC15_7:
|
||||
std::printf("Visual C++ 15.7 - 2017\n");
|
||||
break;
|
||||
case GLM_COMPILER_VC16:
|
||||
std::printf("Visual C++ 16 - 2019\n");
|
||||
break;
|
||||
default:
|
||||
std::printf("Visual C++ version not detected\n");
|
||||
Error += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user