Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard use of VLAs for __STDC_NO_VLA__ to support non-VLA implementations like MSVC. #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion random/random.h
Expand Up @@ -9,7 +9,7 @@

#if defined(HEDLEY_ARRAY_PARAM)
# define PSNIP_RANDOM_ARRAY_PARAM(expr) HEDLEY_ARRAY_PARAM(expr)
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus) && !defined(__PGI)
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && (!defined(__STDC_NO_VLA__) || !__STDC_NO_VLA__) && !defined(__cplusplus) && !defined(__PGI)
# define PSNIP_RANDOM_ARRAY_PARAM(expr) (expr)
#else
# define PSNIP_RANDOM_ARRAY_PARAM(expr)
Expand Down