diff --git a/binding.gyp b/binding.gyp index c57935ed..a2a400ed 100644 --- a/binding.gyp +++ b/binding.gyp @@ -39,7 +39,6 @@ 'VCCLCompilerTool': { 'ExceptionHandling': 1, 'Optimization': 1, - 'RuntimeLibrary': '2', # /MD 'WholeProgramOptimization': 'true' }, 'VCLibrarianTool': { @@ -206,7 +205,6 @@ 'VCCLCompilerTool': { 'ExceptionHandling': 1, 'Optimization': 1, - 'RuntimeLibrary': '2', # /MD 'WholeProgramOptimization': 'true' }, 'VCLibrarianTool': { diff --git a/src/sharp.cc b/src/sharp.cc index f83e7be0..f76a5cb0 100644 --- a/src/sharp.cc +++ b/src/sharp.cc @@ -13,7 +13,6 @@ // limitations under the License. #include -#include #include #include "common.h" @@ -22,14 +21,6 @@ #include "utilities.h" #include "stats.h" -#if defined(_MSC_VER) && _MSC_VER >= 1400 // MSVC 2005/8 -static void empty_invalid_parameter_handler(const wchar_t* expression, - const wchar_t* function, const wchar_t* file, unsigned int line, - uintptr_t reserved) { - // No-op. -} -#endif - static void* sharp_vips_init(void*) { g_setenv("VIPS_MIN_STACK_SIZE", "2m", FALSE); vips_init("sharp"); @@ -43,13 +34,6 @@ Napi::Object init(Napi::Env env, Napi::Object exports) { g_log_set_handler("VIPS", static_cast(G_LOG_LEVEL_WARNING), static_cast(sharp::VipsWarningCallback), nullptr); - // Tell the CRT to not exit the application when an invalid parameter is - // passed. The main issue is that invalid FDs will trigger this behaviour. - // See: https://github.com/libvips/libvips/pull/2571. -#if defined(_MSC_VER) && _MSC_VER >= 1400 // MSVC 2005/8 - _set_invalid_parameter_handler(empty_invalid_parameter_handler); -#endif - // Methods available to JavaScript exports.Set("metadata", Napi::Function::New(env, metadata)); exports.Set("pipeline", Napi::Function::New(env, pipeline));