From 068807337e0fb68d24d0aad582b8a280ecae51ee Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 22 Feb 2009 16:49:46 +0000 Subject: [PATCH] Windows updates --- mediaprovider.h | 2 +- wjpeg.cc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mediaprovider.h b/mediaprovider.h index f5b1e94..de27df7 100644 --- a/mediaprovider.h +++ b/mediaprovider.h @@ -26,7 +26,7 @@ #ifndef WIN32 #include #else - +#include #endif #include "defines.h" diff --git a/wjpeg.cc b/wjpeg.cc index bde3d5a..7b25abb 100644 --- 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 -- 2.39.5