Sun Studio can not include static function from extern inline
authorDagobert Michelsen <dam@opencsw.org>
Sun, 26 May 2013 20:55:12 +0000 (22:55 +0200)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Mon, 27 May 2013 08:06:51 +0000 (18:06 +1000)
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
src/libFLAC/bitwriter.c

index 30a7fd9..9a99d13 100644 (file)
@@ -79,7 +79,10 @@ struct FLAC__BitWriter {
 };
 
 /* * WATCHOUT: The current implementation only grows the buffer. */
-static FLAC__bool bitwriter_grow_(FLAC__BitWriter *bw, unsigned bits_to_add)
+#ifndef __SUNPRO_C
+static
+#endif
+FLAC__bool bitwriter_grow_(FLAC__BitWriter *bw, unsigned bits_to_add)
 {
        unsigned new_capacity;
        uint32_t *new_buffer;