ruby-odbc 0.99991 → 0.99992

Sign up to get free protection for your applications and to get access to all the features.
data/ext/utf8/extconf.rb CHANGED
@@ -48,7 +48,7 @@ have_header("sqlext.h") || begin
48
48
  puts "ERROR: sqlext.h not found"
49
49
  exit 1
50
50
  end
51
- testdlopen = enable_config("dlopen", true)
51
+ testdlopen = enable_config("dlopen", false)
52
52
  begin
53
53
  if PLATFORM !~ /(mingw|cygwin)/ then
54
54
  header = "sqltypes.h"
@@ -134,6 +134,7 @@ elsif (testdlopen && PLATFORM !~ /(macos|darwin)/ && CONFIG["CC"] =~ /gcc/ && ha
134
134
  have_func_nolink("SQLReadFileDSNW", "odbcinst.h")
135
135
  have_func_nolink("SQLInstallerErrorW", "odbcinst.h")
136
136
  else
137
+ $CPPFLAGS+=" -DUNICODE -D_UNICODE"
137
138
  have_library("odbc", "SQLAllocConnect") ||
138
139
  have_library("iodbc", "SQLAllocConnect")
139
140
  ($have_odbcinst_h &&
data/ext/utf8/odbc.c CHANGED
@@ -1,14 +1,16 @@
1
1
  /*
2
2
  * ODBC-Ruby binding
3
- * Copyright (c) 2001-2007 Christian Werner <chw@ch-werner.de>
3
+ * Copyright (c) 2001-2010 Christian Werner <chw@ch-werner.de>
4
4
  *
5
5
  * See the file "COPYING" for information on usage
6
6
  * and redistribution of this file and for a
7
7
  * DISCLAIMER OF ALL WARRANTIES.
8
8
  *
9
- * $Id: odbc.c,v 1.3 2007/04/07 09:39:08 chw Exp chw $
9
+ * $Id: odbc.c,v 1.5 2010/09/16 06:47:00 chw Exp chw $
10
10
  */
11
11
 
12
+ #undef UNICODE
13
+ #undef _UNICODE
12
14
  #define UNICODE
13
15
  #define _UNICODE
14
16
 
data/ruby-odbc.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'date'
2
2
  spec = Gem::Specification.new do |s|
3
3
  s.name = "ruby-odbc"
4
- s.version = "0.99991"
4
+ s.version = "0.99992"
5
5
  s.date = Date.today.to_s
6
6
  s.author = "Christian Werner"
7
7
  s.email = "chw @nospam@ ch-werner.de"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-odbc
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.99991"
4
+ version: "0.99992"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Werner
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-04-25 00:00:00 +02:00
12
+ date: 2010-09-16 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15