"libpng12.0.dylib",
#else
"libpng12.so.0",
+ "libpng.so", // FreeBSD
#endif
NULL
};
}
memcpy(data, my_png.tmpBuf + my_png.tmpi, length);
my_png.tmpi += (int)length;
- Com_HexDumpToConsole(data, (int)length);
+ //Com_HexDumpToConsole(data, (int)length);
}
void PNG_error_fn(void *png, const char *message)
// NOTE: this relies on jmp_buf being the first thing in the png structure
// created by libpng! (this is correct for libpng 1.2.x)
#ifdef __cplusplus
+#ifdef MACOSX
+ if (setjmp((int *)png))
+#else
if (setjmp((__jmp_buf_tag *)png))
+#endif
#else
if (setjmp(png))
#endif