On Mon, 27 Sep 2004 22:10:24 -0700 Remi Mommsen <[EMAIL PROTECTED]> wrote:
> + > +#ifdef __APPLE_CC__ > + /* On Mac OS X use ditto and copy resource fork, too. */ > + char *ditto = (char *) mcalloc(strlen(src) + strlen(dest) + 30, > sizeof(char)); > + sprintf(ditto,"/usr/bin/ditto --rsrc %s %s",src,dest); > + if( system(ditto) ) { > + mprintf(""); // dummy statement to work around gcc optimizer > bug > + return -1; > + } Don't forget to free(ditto)! BTW: Is the dummy statement really needed? -- oo ..... Tomasz Kojm <[EMAIL PROTECTED]> (\/)\......... http://www.ClamAV.net/gpg/tkojm.gpg \..........._ 0DCA5A08407D5288279DB43454822DC8985A444B //\ /\ Fri Oct 1 02:31:30 CEST 2004
pgpamoQSn1miA.pgp
Description: PGP signature