Famous last words...
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12752
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
#ifdef WIN64
if (setjmp((_JBTYPE *)png))
#elif defined(MACOSX) || defined(WIN32)
#elif defined(__ANDROID__)
if (setjmp((long *)png))
#else
- if (setjmp((__jmp_buf_tag *)png))
-#endif
-#else
- if (setjmp(png))
+ if (setjmp((struct __jmp_buf_tag *)png))
#endif
{
qpng_destroy_write_struct(&png, &pnginfo);
# WINDRES=$(TARGET)-windres
endif
-CFLAGS_WARNINGS=-Wall -Wshadow -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -Wmissing-prototypes
+CFLAGS_WARNINGS=-Wall -Werror=c++-compat -Wshadow -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -Wmissing-prototypes
ifeq ($(DP_MAKE_TARGET), mingw)