metadata
Wenzel Jakob 2011-08-24 11:15:56 -04:00
commit c9b76559aa
2 changed files with 8 additions and 4 deletions

View File

@ -55,7 +55,11 @@
#pragma warning(disable : 4251) // 'field' : class 'A' needs to have dll-interface to be used by clients of class 'B' #pragma warning(disable : 4251) // 'field' : class 'A' needs to have dll-interface to be used by clients of class 'B'
#pragma warning(disable : 4800) // 'type' : forcing value to bool 'true' or 'false' (performance warning) #pragma warning(disable : 4800) // 'type' : forcing value to bool 'true' or 'false' (performance warning)
#pragma warning(disable : 4996) // Secure SCL warnings #pragma warning(disable : 4996) // Secure SCL warnings
#if _MSC_VER < 1600
#include <stdint_msvc.h> // Does not exist in MSVC. Use a replacement #include <stdint_msvc.h> // Does not exist in MSVC. Use a replacement
#else
#include <stdint.h>
#endif
#if _MSC_VER >= 1400 #if _MSC_VER >= 1400
#include <memory.h> #include <memory.h>
#include <string.h> #include <string.h>

View File

@ -97,17 +97,17 @@ private:
* ========================== */ * ========================== */
static void png_flush_data(png_structp png_ptr) { static void png_flush_data(png_structp png_ptr) {
voidp flush_io_ptr = png_get_io_ptr(png_ptr); png_voidp flush_io_ptr = png_get_io_ptr(png_ptr);
((Stream *) flush_io_ptr)->flush(); ((Stream *) flush_io_ptr)->flush();
} }
static void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length) { static void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length) {
voidp read_io_ptr = png_get_io_ptr(png_ptr); png_voidp read_io_ptr = png_get_io_ptr(png_ptr);
((Stream *) read_io_ptr)->read(data, length); ((Stream *) read_io_ptr)->read(data, length);
} }
static void png_write_data(png_structp png_ptr, png_bytep data, png_size_t length) { static void png_write_data(png_structp png_ptr, png_bytep data, png_size_t length) {
voidp write_io_ptr = png_get_io_ptr(png_ptr); png_voidp write_io_ptr = png_get_io_ptr(png_ptr);
((Stream *) write_io_ptr)->write(data, length); ((Stream *) write_io_ptr)->write(data, length);
} }