diff options
Diffstat (limited to 'core/src/fxcodec')
-rw-r--r-- | core/src/fxcodec/fx_zlib/zlib_v128/gzguts.h | 6 | ||||
-rw-r--r-- | core/src/fxcodec/lcms2/lcms2-2.6/src/cmsplugin.c | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/core/src/fxcodec/fx_zlib/zlib_v128/gzguts.h b/core/src/fxcodec/fx_zlib/zlib_v128/gzguts.h index e4454aa65d..a877c0eee3 100644 --- a/core/src/fxcodec/fx_zlib/zlib_v128/gzguts.h +++ b/core/src/fxcodec/fx_zlib/zlib_v128/gzguts.h @@ -29,10 +29,8 @@ #ifdef _WIN32 # include <stddef.h> -#endif - -#ifdef __APPLE__ -#include <unistd.h> +#else +# include <unistd.h> #endif #if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32) diff --git a/core/src/fxcodec/lcms2/lcms2-2.6/src/cmsplugin.c b/core/src/fxcodec/lcms2/lcms2-2.6/src/cmsplugin.c index 55928b7018..8903d2bd61 100644 --- a/core/src/fxcodec/lcms2/lcms2-2.6/src/cmsplugin.c +++ b/core/src/fxcodec/lcms2/lcms2-2.6/src/cmsplugin.c @@ -689,7 +689,7 @@ void* _cmsContextGetClientChunk(cmsContext ContextID, _cmsMemoryClient mc) struct _cmsContext_struct* ctx; void *ptr; - if (mc < 0 || mc >= MemoryClientMax) { + if (mc >= MemoryClientMax) { cmsSignalError(ContextID, cmsERROR_RANGE, "Bad context client"); return NULL; } |