merge
commit
c9b76559aa
|
@ -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 : 4800) // 'type' : forcing value to bool 'true' or 'false' (performance warning)
|
||||
#pragma warning(disable : 4996) // Secure SCL warnings
|
||||
#include <stdint_msvc.h> // Does not exist in MSVC. Use a replacement
|
||||
#if _MSC_VER < 1600
|
||||
#include <stdint_msvc.h> // Does not exist in MSVC. Use a replacement
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
#if _MSC_VER >= 1400
|
||||
#include <memory.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -97,17 +97,17 @@ private:
|
|||
* ========================== */
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue