projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f807c64
)
Fix building with MSDTC=no.
author
Heikki Linnakangas
<heikki.linnakangas@iki.fi>
Tue, 6 Jan 2015 09:36:57 +0000
(11:36 +0200)
committer
Heikki Linnakangas
<heikki.linnakangas@iki.fi>
Tue, 6 Jan 2015 09:37:32 +0000
(11:37 +0200)
setup.c
patch
|
blob
|
blame
|
history
diff --git
a/setup.c
b/setup.c
index 91773936c7e743447df094d804aa198ef05cf8c9..fbb055002eefd2956206c6ba3e33afa7a163217a 100644
(file)
--- a/
setup.c
+++ b/
setup.c
@@
-442,6
+442,7
@@
void test_connection(HANDLE hwnd, ConnInfo *ci, BOOL withDTC)
emsg = szMsg;
if (withDTC)
{
+#ifdef _HANDLE_ENLIST_IN_DTC_
HRESULT res;
void *pObj = NULL;
@@
-466,6
+467,9
@@
void test_connection(HANDLE hwnd, ConnInfo *ci, BOOL withDTC)
}
else if (FAILED(res))
snprintf(szMsg, sizeof(szMsg), "%s\nDistibuted Transaction enlistment error %x", emsg, res);
+#else /* _HANDLE_ENLIST_IN_DTC_ */
+ snprintf(szMsg, sizeof(szMsg), "%s\nDistibuted Transaction enlistment not supported by this driver", emsg);
+#endif
}
}
else