123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- #ifdef _WIN32
- #pragma warning(disable : 4018)
- #pragma warning(disable : 4032)
- #pragma warning(disable : 4051)
- #pragma warning(disable : 4057)
- #pragma warning(disable : 4100)
- #pragma warning(disable : 4115)
- #pragma warning(disable : 4125)
- #pragma warning(disable : 4127)
- #pragma warning(disable : 4136)
- #pragma warning(disable : 4152)
- #pragma warning(disable : 4201)
- #pragma warning(disable : 4214)
- #pragma warning(disable : 4244)
- #pragma warning(disable : 4305)
- #pragma warning(disable : 4310)
- #pragma warning(disable: 4505)
- #pragma warning(disable : 4514)
- #pragma warning(disable : 4702)
- #pragma warning(disable : 4711)
- #pragma warning(disable : 4220)
- #pragma warning(disable : 4761)
- #endif
- #include "../jpeg-6/jconfig.h"
- #define JCONFIG_INCLUDED
- #ifdef HAVE_STDDEF_H
- #include <stddef.h>
- #endif
- #ifdef HAVE_STDLIB_H
- #include <stdlib.h>
- #endif
- #ifdef NEED_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- #include <stdio.h>
- #ifdef NEED_BSD_STRINGS
- #include <strings.h>
- #define MEMZERO(target,size) bzero((void *)(target), (size_t)(size))
- #define MEMCOPY(dest,src,size) bcopy((const void *)(src), (void *)(dest), (size_t)(size))
- #else
- #include <string.h>
- #define MEMZERO(target,size) memset((void *)(target), 0, (size_t)(size))
- #define MEMCOPY(dest,src,size) memcpy((void *)(dest), (const void *)(src), (size_t)(size))
- #endif
- #define SIZEOF(object) ((size_t) sizeof(object))
- #define JFREAD(file,buf,sizeofbuf) \
- ((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))
- #define JFWRITE(file,buf,sizeofbuf) \
- ((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))
|