Browse Source

Restore FreeType gzip debug build fix.

Lasse Öörni 9 years ago
parent
commit
b8ee493454
1 changed files with 17 additions and 0 deletions
  1. 17 0
      Source/ThirdParty/FreeType/src/gzip/zutil.c

+ 17 - 0
Source/ThirdParty/FreeType/src/gzip/zutil.c

@@ -5,12 +5,29 @@
 
 /* @(#) $Id$ */
 
+// Modified by Yao Wei Tjong for Urho3D
+
 #include "zutil.h"
 
 #ifndef STDC
 extern void exit OF((int));
 #endif
 
+// Urho3D: quick fix for debug build
+#ifdef DEBUG
+
+#  ifndef verbose
+#    define verbose 0
+#  endif
+int z_verbose = verbose;
+
+void z_error (m)
+char *m;
+{
+    fprintf(stderr, "%s\n", m);
+    exit(1);
+}
+#endif
 
 #ifndef HAVE_MEMCPY