From: kramm Date: Sat, 12 Jun 2004 16:04:02 +0000 (+0000) Subject: ntohs, ntohl, htons are available on MingW, so don't supply replacements. X-Git-Tag: release-0-6-0~118 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=46bc3c15c27d5894b13ede2956e5017716fdb44a;p=swftools.git ntohs, ntohl, htons are available on MingW, so don't supply replacements. --- diff --git a/pdf2swf/ttf2pt1/win_missing.h b/pdf2swf/ttf2pt1/win_missing.h index a90ecf7..c494099 100644 --- a/pdf2swf/ttf2pt1/win_missing.h +++ b/pdf2swf/ttf2pt1/win_missing.h @@ -13,40 +13,6 @@ #ifdef WINDOWS_FUNCTIONS /* byte order */ -static unsigned short StoM(unsigned short inv) { - union iconv { - unsigned short ui; - unsigned char uc[2]; - } *inp, outv; - - inp = (union iconv *)&inv; - - outv.uc[0] = inp->uc[1]; - outv.uc[1] = inp->uc[0]; - - return (outv.ui); -} - -static unsigned int ItoM(unsigned int inv) { - union iconv { - unsigned int ui; - unsigned char uc[4]; - } *inp, outv; - - inp = (union iconv *)&inv; - - outv.uc[0] = inp->uc[3]; - outv.uc[1] = inp->uc[2]; - outv.uc[2] = inp->uc[1]; - outv.uc[3] = inp->uc[0]; - - return (outv.ui); -} - -unsigned short ntohs(unsigned short inv) { return StoM(inv); } -unsigned long ntohl(unsigned long inv) { return ItoM(inv); } -unsigned long htonl(unsigned long inv) { return ItoM(inv); } - char *optarg; int optind=1;