diff --git a/native_mate/converter.cc b/native_mate/converter.cc index cc66b8d39078..2c9d95f94171 100644 --- a/native_mate/converter.cc +++ b/native_mate/converter.cc @@ -31,6 +31,7 @@ bool Converter::FromV8(Isolate* isolate, Handle val, bool* out) { return true; } +#if !defined(OS_LINUX) Handle Converter::ToV8(Isolate* isolate, unsigned long val) { return MATE_INTEGER_NEW(isolate, val); @@ -43,7 +44,7 @@ bool Converter::FromV8(Isolate* isolate, Handle val, *out = val->IntegerValue(); return true; } - +#endif Handle Converter::ToV8(Isolate* isolate, int32_t val) { return MATE_INTEGER_NEW(isolate, val); diff --git a/native_mate/converter.h b/native_mate/converter.h index 37d86f82bf01..e2fe3e885cf7 100644 --- a/native_mate/converter.h +++ b/native_mate/converter.h @@ -33,6 +33,7 @@ struct Converter { bool* out); }; +#if !defined(OS_LINUX) template<> struct Converter { static v8::Handle ToV8(v8::Isolate* isolate, @@ -41,6 +42,7 @@ struct Converter { v8::Handle val, unsigned long* out); }; +#endif template<> struct Converter {