]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - dpvsimpledecode.h
fix a syntax error. Why didn't my gcc catch it? clang does...
[xonotic/darkplaces.git] / dpvsimpledecode.h
index 2d1f99c9cdee8b103cf35159e678d010aff41c76..075f3652b45cbe923d5b4eb3a2d8bec18322457b 100644 (file)
@@ -16,7 +16,7 @@
 // opening and closing streams
 
 // opens a stream
-void *dpvsimpledecode_open(char *filename, char **errorstring);
+void *dpvsimpledecode_open(char *filename, const char **errorstring);
 // closes a stream
 void dpvsimpledecode_close(void *stream);
 
@@ -26,7 +26,7 @@ void dpvsimpledecode_close(void *stream);
 // number to DPVDECODEERROR_NONE
 // if the supplied string pointer variable is not NULL, it will be set to the
 // error message
-int dpvsimpledecode_error(void *stream, char **errorstring);
+int dpvsimpledecode_error(void *stream, const char **errorstring);
 
 // returns the width of the image data
 unsigned int dpvsimpledecode_getwidth(void *stream);