summaryrefslogtreecommitdiff
path: root/databases/iodbc/patches/patch-aa
blob: 7a0437e683e49e25e076464e8ea5fb0fb0b0a406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-aa,v 1.4 2007/01/12 17:27:20 obache Exp $

Rip out a completely non-standard and hokey way to determine if wchar_t
is a valid type.

--- include/sqltypes.h.orig	2006-01-26 09:50:59.000000000 +0000
+++ include/sqltypes.h
@@ -393,17 +393,7 @@ SQLGUID;
 typedef unsigned short SQLWCHAR;
 #else
 #  include <stdlib.h>
-
-#  if defined(__cplusplus)		|| \
-      defined(_WCHAR_T)			|| \
-      defined(_WCHAR_T_DEFINED)		|| \
-      defined(_WCHAR_T_DECLARED)        || \
-      defined(_BSD_WCHAR_T_DEFINED_)    || \
-      defined(_BSD_WCHAR_T_)
 typedef wchar_t SQLWCHAR;
-#  else
-#    error Please make sure your system supports the wchar_t type
-#  endif
 #endif /* WIN32 */