diff options
author | Juan M Gómez <info@jmgomez.me> | 2022-10-25 16:39:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 17:39:51 +0200 |
commit | 3b973f3fc8a87a42b2b3855a56d87f6646fe76ac (patch) | |
tree | bdbabdae61608875310fd1c3fedb9fd4dfe4873d | |
parent | 2d3e3ab5277beaa1cfcb746ea3f37b91fea42e59 (diff) | |
download | Nim-3b973f3fc8a87a42b2b3855a56d87f6646fe76ac.tar.gz |
fixes #20654 FAMs should not be used in the C++ backend (#20655)
* fixes #20654 FAMs should not be used in the C++ backend * updates the test so it only affects clang
-rw-r--r-- | lib/nimbase.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h index e4dec0dd2..b9b2695c9 100644 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -478,7 +478,9 @@ typedef char* NCSTRING; } name = {{length, (NI) ((NU)length | NIM_STRLIT_FLAG)}, str} /* declared size of a sequence/variable length array: */ -#if defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER) +#if defined(__cplusplus) && defined(__clang__) +# define SEQ_DECL_SIZE 1 +#elif defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER) # define SEQ_DECL_SIZE /* empty is correct! */ #else # define SEQ_DECL_SIZE 1000000 |