X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fttf2pt1%2Fttf2pt1.c;fp=pdf2swf%2Fttf2pt1%2Fttf2pt1.c;h=472d1ca7c1324d1a48404212103be08e616b47a5;hb=a99083c972c3464b16cb2d488f7e8b2519c48c41;hp=2de4b5f010f9dd4130f6ebb52bc3d21fc304ea7a;hpb=9a4ad4d5cb927ab43005f00f74c59e399158d4dd;p=swftools.git diff --git a/pdf2swf/ttf2pt1/ttf2pt1.c b/pdf2swf/ttf2pt1/ttf2pt1.c index 2de4b5f..472d1ca 100644 --- a/pdf2swf/ttf2pt1/ttf2pt1.c +++ b/pdf2swf/ttf2pt1/ttf2pt1.c @@ -69,14 +69,14 @@ #include #endif -#ifndef WINDOWS +#ifndef WIN32 # include # include # define BITBUCKET "/dev/null" # include #else # define WINDOWS_FUNCTIONS /* ask to define functions - in one file only */ -# include "windows.h" +# include "win_missing.h" # define BITBUCKET "NUL" #endif @@ -1859,7 +1859,7 @@ ttf2pt1_main( if (argv[2][0] == '-' && argv[2][1] == 0) { pfa_file = stdout; -#ifdef WINDOWS +#ifdef WIN32 if(encode) { fprintf(stderr, "**** can't write encoded file to stdout ***\n"); exit(1); @@ -1877,7 +1877,7 @@ ttf2pt1_main( afm_file=n; } } else { -#ifndef WINDOWS +#ifndef WIN32 sprintf(filename, "%s.%s", argv[2], encode ? (pfbflag ? "pfb" : "pfa") : "t1a" ); #else /* WINDOWS */ sprintf(filename, "%s.t1a", argv[2]); @@ -1899,7 +1899,7 @@ ttf2pt1_main( /* * Now check whether we want a fully encoded .pfa file */ -#ifndef WINDOWS +#ifndef WIN32 if (encode) { int p[2]; extern FILE *ifp, *ofp; /* from t1asm.c */ @@ -2280,7 +2280,7 @@ ttf2pt1_main( cursw->close(); -#ifndef WINDOWS +#ifndef WIN32 while (wait(&ws) > 0) { } #else