]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
enabled more features for SHADERMODE_GENERIC
[xonotic/darkplaces.git] / common.h
index 1e17fab81ffe9c55e2b3eb35e6e8c619c9c3b8be..f3516c5da03ce7d4241892f1bb40a71a9b096984 100644 (file)
--- a/common.h
+++ b/common.h
@@ -216,7 +216,13 @@ char       *va(const char *format, ...) DP_FUNC_PRINTF(1);
 
 
 // snprintf and vsnprintf are NOT portable. Use their DP counterparts instead
+#ifdef snprintf
+# undef snprintf
+#endif
 #define snprintf DO_NOT_USE_SNPRINTF__USE_DPSNPRINTF
+#ifdef vsnprintf
+# undef vsnprintf
+#endif
 #define vsnprintf DO_NOT_USE_VSNPRINTF__USE_DPVSNPRINTF
 
 // dpsnprintf and dpvsnprintf
@@ -353,5 +359,7 @@ void FindFraction(double val, int *num, int *denom, int denomMax);
 // decodes XPM file to XPM array (as if #include'd)
 char **XPM_DecodeString(const char *in);
 
+size_t base64_encode(unsigned char *buf, size_t buflen, size_t outbuflen);
+
 #endif