Skip to content

Commit 95ccf8b

Browse files
mochaaPBillyONeal
authored andcommitted
random: fix for msvc not implementing vla (nemequ#50)
Co-authored-by: Billy Robert O'Neal III <[email protected]>
1 parent 89fdcaf commit 95ccf8b

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)