]> git.vomp.tv Git - vompclient-marten.git/commitdiff
Windows updates
authorChris Tallon <chris@vomp.tv>
Sun, 22 Feb 2009 16:49:46 +0000 (16:49 +0000)
committerChris Tallon <chris@vomp.tv>
Sun, 22 Feb 2009 16:49:46 +0000 (16:49 +0000)
mediaprovider.h
wjpeg.cc

index f5b1e94500eeec56145613ea02f5998cd75c81a5..de27df75f0208c42f383ee632c461b098de24e9f 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef WIN32
 #include <arpa/inet.h>
 #else
-
+#include <winsock2.h>
 #endif
 
 #include "defines.h"
index bde3d5ac05659884318bdcf5a5e0ddfef32d8821..7b25abb96df249ed0817186fe254e4657711309c 100644 (file)
--- a/wjpeg.cc
+++ b/wjpeg.cc
@@ -28,7 +28,6 @@
 
 #endif
 
-
 #include "i18n.h"
 #include "log.h"
 #include "surface.h"
@@ -782,7 +781,7 @@ bool WJpeg::drawJpeg(JpegControl * ctl,Surface * sfc,JpegReader *rdr, Colour & b
     if (rdr) jpeg_memio_cleanup(&cinfo);
     jpeg_destroy_decompress(&cinfo);
     logger->log("BJpeg", Log::ERR, "JPEG error - no room for buffer");
-    snprintf(ctl->error,100,"no room for buffer");
+    SNPRINTF(ctl->error,100,"no room for buffer");
     return false;
   }
 #endif