Fix compile oopses on non-OS X
This commit is contained in:
parent
148014f99a
commit
e94da877c2
1 changed files with 3 additions and 2 deletions
|
@ -226,10 +226,11 @@ std::string NativeImage::ToDataURL() {
|
|||
v8::Local<v8::Value> NativeImage::GetNativeHandle(
|
||||
v8::Isolate* isolate,
|
||||
mate::Arguments* args) {
|
||||
void* ptr = NULL;
|
||||
#if defined(OS_MACOSX)
|
||||
void* ptr = reinterpret_cast<void*>(image_.AsNSImage());
|
||||
ptr = reinterpret_cast<void*>(image_.AsNSImage());
|
||||
#else
|
||||
args.ThrowError();
|
||||
args->ThrowError();
|
||||
return v8::Undefined(isolate);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue