Skip to content

Commit 3bf414a

Browse files
mochaaPBillyONeal
andcommitted
random: fix for msvc not implementing vla (nemequ#50)
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
1 parent f0bc791 commit 3bf414a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

random/random.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#if defined(HEDLEY_ARRAY_PARAM)
1111
# define PSNIP_RANDOM_ARRAY_PARAM(expr) HEDLEY_ARRAY_PARAM(expr)
12-
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus) && !defined(__PGI)
12+
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && (!defined(__STDC_NO_VLA__) || !__STDC_NO_VLA__) && !defined(__cplusplus) && !defined(__PGI)
1313
# define PSNIP_RANDOM_ARRAY_PARAM(expr) (expr)
1414
#else
1515
# define PSNIP_RANDOM_ARRAY_PARAM(expr)

0 commit comments

Comments
 (0)