diff options
Diffstat (limited to 'polyp/strbuf.c')
-rw-r--r-- | polyp/strbuf.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/polyp/strbuf.c b/polyp/strbuf.c index 169604e8..44cae2ce 100644 --- a/polyp/strbuf.c +++ b/polyp/strbuf.c @@ -33,10 +33,22 @@ #include "strbuf.h" +#ifdef __STDC_VERSION__ +#if __STDC_VERSION__ >= 199901L +#ifndef STDC99 +#define STDC99 +#endif +#endif +#endif + struct chunk { struct chunk *next; size_t length; +#ifdef STDC99 char text[]; +#else + char text[0]; +#endif }; struct pa_strbuf { |