v / thirdparty / mssql / include / mssql.h
20 lines · 17 sloc · 521 bytes · 3582118b7c7a823798a68463f851db59fa5eacb4
Raw
1// Hacking some headers in windows.
2// sql headers using UNICODE to change function signatures.
3// Currently Linux bindings do not use unicode SQL C bindings,
4// So we turn off the UNICODE to make it compile on windows.
5// For future Unicode support, please raise a issue.
6
7#include <windows.h>
8#include <sal.h>
9
10#ifdef UNICODE
11// Turn off unicode macro and turn back on, so it only affects sql headers
12#undef UNICODE
13#include <sql.h>
14#include <sqlext.h>
15#define UNICODE
16
17#else
18#include <sql.h>
19#include <sqlext.h>
20#endif