Mercurial > SDL_sound_CoreAudio
comparison decoders/voc.c @ 401:c42ac9ee2ce4
Fixed "inline" keyword to compile.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 12 Jul 2002 23:16:24 +0000 |
parents | fb519e6028e3 |
children | daeb71a3f1ed |
comparison
equal
deleted
inserted
replaced
400:9d0b5ec9cc26 | 401:c42ac9ee2ce4 |
---|---|
140 { | 140 { |
141 /* it's a no-op. */ | 141 /* it's a no-op. */ |
142 } /* VOC_quit */ | 142 } /* VOC_quit */ |
143 | 143 |
144 | 144 |
145 static inline int voc_readbytes(SDL_RWops *src, vs_t *v, void *p, int size) | 145 static __inline__ int voc_readbytes(SDL_RWops *src, vs_t *v, void *p, int size) |
146 { | 146 { |
147 if (SDL_RWread(src, p, size, 1) != 1) | 147 if (SDL_RWread(src, p, size, 1) != 1) |
148 { | 148 { |
149 v->error = 1; | 149 v->error = 1; |
150 BAIL_MACRO("VOC: i/o error", 0); | 150 BAIL_MACRO("VOC: i/o error", 0); |
152 | 152 |
153 return(1); | 153 return(1); |
154 } /* voc_readbytes */ | 154 } /* voc_readbytes */ |
155 | 155 |
156 | 156 |
157 static inline int voc_check_header(SDL_RWops *src) | 157 static __inline__ int voc_check_header(SDL_RWops *src) |
158 { | 158 { |
159 /* VOC magic header */ | 159 /* VOC magic header */ |
160 Uint8 signature[20]; /* "Creative Voice File\032" */ | 160 Uint8 signature[20]; /* "Creative Voice File\032" */ |
161 Uint16 datablockofs; | 161 Uint16 datablockofs; |
162 vs_t v; /* dummy struct for voc_readbytes */ | 162 vs_t v; /* dummy struct for voc_readbytes */ |