C99 is now the C standard for all our C code.
The main new feature is mixed variable declarations and code, which can help reduce uninitialized variables or accidental variable reuse. Due to incomplete C99 support in VS 2013, variable length arrays are not supported, BLI_array_alloca must still be used. The header <tgmath.h> is also not supported. Differential Revision: https://developer.blender.org/D1631
This commit is contained in:
@@ -30,6 +30,9 @@
|
||||
*/
|
||||
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
# ifdef __GNUC__
|
||||
# pragma GCC diagnostic ignored "-Wvla"
|
||||
# endif
|
||||
# define USE_DYNSIZE
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user