win: enable anonymous structs for Visual Studio 2015 and later

This commit is contained in:
Recep Aslantas
2020-01-17 23:55:35 +03:00
parent cf8dc82783
commit f8784ffe8a

View File

@@ -29,6 +29,10 @@
/* We're compiling for C11 or this is the MSVC compiler. In either /* We're compiling for C11 or this is the MSVC compiler. In either
* case, anonymous structs are available, so use them. */ * case, anonymous structs are available, so use them. */
# define CGLM_USE_ANONYMOUS_STRUCT 1 # define CGLM_USE_ANONYMOUS_STRUCT 1
# elif defined(_MSC_VER) && (_MSC_VER >= 1900) /* Visual Studio 2015 */
/* We can support anonymous structs
* since Visual Studio 2015 or 2017 (1910) maybe? */
# define CGLM_USE_ANONYMOUS_STRUCT 1
# else # else
/* Otherwise, we're presumably building for C99 or C89 and can't rely /* Otherwise, we're presumably building for C99 or C89 and can't rely
* on anonymous structs being available. Turn them off. */ * on anonymous structs being available. Turn them off. */