summaryrefslogtreecommitdiff
path: root/binding.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'binding.gyp')
-rw-r--r--binding.gyp16
1 files changed, 15 insertions, 1 deletions
diff --git a/binding.gyp b/binding.gyp
index e0c5e4c..c4788fe 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -2,7 +2,21 @@
"targets": [
{
"target_name": "winutils",
- "sources": [ "index.cc" ]
+ "sources": [ "index.cc" ],
+
+ 'conditions': [
+ [ 'OS=="win"', {
+ 'defines': [
+ 'UNICODE=1',
+ '_UNICODE=1',
+ '_SQLNCLI_ODBC_',
+ ],
+ 'libraries': [
+ 'odbc32.lib'
+ ],
+ }
+ ]
+ ]
}
]
}