summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorHeikki Linnakangas2015-01-06 09:36:57 +0000
committerHeikki Linnakangas2015-01-06 09:37:32 +0000
commitbf15d5434cfa35aed7bb8335209f866eb299e22e (patch)
treec365861ed2dba6c08f89161ee0f52e3f73c60f56 /setup.c
parentf807c6488ea0e8beaaabbf58e206e793b841804b (diff)
Fix building with MSDTC=no.
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index 9177393..fbb0550 100644
--- 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