mirror of
https://github.com/lovell/sharp.git
synced 2025-07-10 19:10:14 +02:00
parent
b77877c83d
commit
4f72dcbf54
@ -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?
|
||||||
|
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user