6eab7fc47402f1ce34ed331ae80f5bcbee54da82 braney Thu Dec 16 13:30:33 2010 -0800 remove USE_PNG and GIF support #1323 diff --git src/weblet/counter/counter.c src/weblet/counter/counter.c index 4b67685..f4a0539 100755 --- src/weblet/counter/counter.c +++ src/weblet/counter/counter.c @@ -74,24 +74,19 @@ char *counterFileName; long count; struct memGfx *mg; boolean saveWhence = cgiBoolean("whence"); boolean mute = cgiBoolean("mute"); counterFileName = cgiOptionalString("file"); if (counterFileName == NULL) counterFileName = "default.ctr"; count = incCount(counterFileName, saveWhence); if (mute) mg = mgNew(1, 1); else mg = makeCountPic(count, mgMediumFont()); -#ifdef USE_PNG fprintf(stdout, "Content-type: image/png\n\n"); mgSaveToPng(stdout, mg, FALSE); -#else -fprintf(stdout, "Content-type: image/gif\n\n"); -mgSaveToGif(stdout, mg, FALSE); -#endif return 0; }