diff --git a/deps/common.gyp b/deps/common.gyp index 201c6b5..df8b97c 100644 --- a/deps/common.gyp +++ b/deps/common.gyp @@ -10,8 +10,11 @@ { 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', - } - } + }, + 'defines': [ + 'HAVE_UNISTD_H', + ], + }, ], ['OS=="win"', { diff --git a/deps/libpng/pngpriv.h b/deps/libpng/pngpriv.h index cbd66de..35e5273 100644 --- a/deps/libpng/pngpriv.h +++ b/deps/libpng/pngpriv.h @@ -436,18 +436,8 @@ */ # include -# if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \ - defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC) - /* We need to check that hasn't already been included earlier - * as it seems it doesn't agree with , yet we should really use - * if possible. - */ -# if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__) -# include -# endif -# else -# include -# endif +# include + # if defined(_AMIGA) && defined(__SASC) && defined(_M68881) /* Amiga SAS/C: We must include builtin FPU functions when compiling using * MATH=68881 @@ -910,7 +900,7 @@ PNG_INTERNAL_FUNCTION(png_voidp,png_malloc_base,(png_const_structrp png_ptr, #if defined(PNG_TEXT_SUPPORTED) || defined(PNG_sPLT_SUPPORTED) ||\ defined(PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED) /* Internal array allocator, outputs no error or warning messages on failure, - * just returns NULL. + * just returns NULL. */ PNG_INTERNAL_FUNCTION(png_voidp,png_malloc_array,(png_const_structrp png_ptr, int nelements, size_t element_size),PNG_ALLOCATED); diff --git a/deps/pHash/ph_fft.h b/deps/pHash/ph_fft.h index b1b3684..836f057 100644 --- a/deps/pHash/ph_fft.h +++ b/deps/pHash/ph_fft.h @@ -29,7 +29,7 @@ #define PI 3.1415926535897932 #include -#include +#include #include int fft(double *x, int N, complex double *X); diff --git a/deps/zlib/gzguts.h b/deps/zlib/gzguts.h index d87659d..fb91985 100644 --- a/deps/zlib/gzguts.h +++ b/deps/zlib/gzguts.h @@ -3,6 +3,8 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ +#include + #ifdef _LARGEFILE64_SOURCE # ifndef _LARGEFILE_SOURCE # define _LARGEFILE_SOURCE 1