]> code.delx.au - pulseaudio/blobdiff - polyp/strbuf.c
some updates for pa_hashmap
[pulseaudio] / polyp / strbuf.c
index ef48a3fb24d6dcad7722e142fe85682cc8eb8161..44cae2ce89b7f18dfdc34b3a13a1a8c67fb14b3d 100644 (file)
 
 #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 {