Verify platform/compiler compatibility #178 #214

This commit is contained in:
Lovell Fuller 2015-05-11 10:46:47 +01:00
parent b77877c83d
commit 4f72dcbf54
2 changed files with 14 additions and 4 deletions

View File

@ -4,6 +4,20 @@
#include "common.h" #include "common.h"
// Verify platform and compiler compatibility
#ifdef _WIN64
#error Windows 64-bit is currently unsupported - see https://github.com/lovell/sharp#windows
#endif
#if ((!defined(__clang__)) && defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6)))
#error GCC version 4.6+ is required for C++11 features - see https://github.com/lovell/sharp#prerequisites
#endif
#if (defined(__clang__) && !__has_feature(cxx_range_for))
#error clang version 3.0+ is required for C++11 features - see https://github.com/lovell/sharp#prerequisites
#endif
namespace sharp { namespace sharp {
// How many tasks are in the queue? // How many tasks are in the queue?

View File

@ -8,10 +8,6 @@
#include "resize.h" #include "resize.h"
#include "utilities.h" #include "utilities.h"
#ifdef _WIN64
#error Windows 64-bit currently unsupported - see https://github.com/lovell/sharp#windows
#endif
extern "C" void init(v8::Handle<v8::Object> target) { extern "C" void init(v8::Handle<v8::Object> target) {
NanScope(); NanScope();
vips_init("sharp"); vips_init("sharp");