int main( int argc, char ** argv)
{ SWF swf;
- LPTAG t;
+ TAG* t;
RGBA rgb;
- LPSHAPE s;
+ SHAPE* s;
MATRIX m;
SRECT r;
- LPJPEGBITS jpeg;
+ JPEGBITS* jpeg;
int f; // file handle
// swf_WriteCGI(&swf);
- f = open("jpegtest.swf",O_WRONLY|O_CREAT, 0644);
+ f = open("jpegtest.swf",O_WRONLY|O_CREAT||O_BINARY, 0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);