]> git.draconx.ca Git - cdecl99.git/blobdiff - src/error.c
Minor portability improvements.
[cdecl99.git] / src / error.c
index 3d0a38e3f83218f739c45f4905ff58c68fa3207f..093f56c5c58e134800998fce8ad05c3e28dfabe3 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>
+
 #include <glthread/lock.h>
 #include <glthread/tls.h>
 
@@ -32,7 +33,7 @@ static gl_tls_key_t tls_key;
 struct err_state {
        struct cdecl_error err;
        size_t nstr;
-       char str[];
+       char str[FLEXIBLE_ARRAY_MEMBER];
 };
 
 /* This error is reserved for extremely dire out-of-memory conditions. */