git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6266
d7cf8633-e32d-0410-b094-
e92efae38249
// 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
// 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))
if (setjmp((__jmp_buf_tag *)png))
#else
if (setjmp(png))
#endif
#else
if (setjmp(png))
#endif