File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,12 @@ ociLibDir = process.env["OCI_LIB_DIR"] || "/usr/lib/oracle/11.2/client/lib/";
15
15
builder . failIfNotExists ( ociLibDir , 'Could not find "%s" check OCI_LIB_DIR environment variable.' ) ;
16
16
builder . appendLinkerSearchDir ( ociLibDir ) ;
17
17
18
- builder . appendLinkerLibrary ( "occi" ) ;
19
- builder . appendLinkerLibrary ( "clntsh" ) ;
18
+ if ( process . platform == 'win32' ) {
19
+ builder . appendLinkerLibrary ( "oci" ) ;
20
+ } else {
21
+ builder . appendLinkerLibrary ( "occi" ) ;
22
+ builder . appendLinkerLibrary ( "clntsh" ) ;
23
+ }
20
24
if ( path . existsSync ( path . join ( ociLibDir , "libnnz10.dylib" ) )
21
25
|| path . existsSync ( path . join ( ociLibDir , "libnnz10.so" ) ) ) {
22
26
builder . appendLinkerLibrary ( "nnz10" ) ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ ExecuteBaton::~ExecuteBaton() {
40
40
}
41
41
42
42
double CallDateMethod (v8::Local<v8::Date> date, const char * methodName) {
43
- Handle<Value> args[0 ];
43
+ Handle<Value> args[1 ]; // should be zero but on windows the compiler will not allow a zero length array
44
44
Local<Value> result = Local<Function>::Cast (date->Get (String::New (methodName)))->Call (date, 0 , args);
45
45
return Local<Number>::Cast (result)->Value ();
46
46
}
You can’t perform that action at this time.
0 commit comments