summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTomohiro <gpuppur@gmail.com>2024-08-12 22:19:42 +0900
committerGitHub <noreply@github.com>2024-08-12 15:19:42 +0200
commit7a0069a134aae949f310b5936c6a31270dc79316 (patch)
treebb520fa24aede11c1dfa4ff53b1c6c6095b39f8b
parent20043ea09ef44f413308158a74ba2ba1fe3379bb (diff)
downloadNim-7a0069a134aae949f310b5936c6a31270dc79316.tar.gz
fixes #23913; empty SEQ_DECL_SIZE (#23940)
-rw-r--r--lib/nimbase.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index c66be40c2..4674b64c8 100644
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -475,9 +475,7 @@ typedef char* NCSTRING;
   } name = {{length, (NI) ((NU)length | NIM_STRLIT_FLAG)}, str}
 
 /* declared size of a sequence/variable length array: */
-#if defined(__cplusplus) && defined(__clang__)
-#  define SEQ_DECL_SIZE 1
-#elif defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER)
+#if  defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER)
 #  define SEQ_DECL_SIZE /* empty is correct! */
 #else
 #  define SEQ_DECL_SIZE 1000000