Merge pull request #21 from yzgyyang/master

Add support for FreeBSD
This commit is contained in:
Cheng Zhao 2018-03-23 09:19:00 +09:00 committed by GitHub
commit 6a3d238b7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ bool Converter<bool>::FromV8(Isolate* isolate, Local<Value> val, bool* out) {
return true;
}
#if !defined(OS_LINUX)
#if !defined(OS_LINUX) && !defined(OS_FREEBSD)
Local<Value> Converter<unsigned long>::ToV8(Isolate* isolate,
unsigned long val) {
return MATE_INTEGER_NEW(isolate, val);

View file

@ -56,7 +56,7 @@ struct Converter<bool> {
bool* out);
};
#if !defined(OS_LINUX)
#if !defined(OS_LINUX) && !defined(OS_FREEBSD)
template<>
struct Converter<unsigned long> {
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,