You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2010/01/07 07:51:08 UTC

svn commit: r896764 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/dtc.cpp

Author: mturk
Date: Thu Jan  7 06:51:05 2010
New Revision: 896764

URL: http://svn.apache.org/viewvc?rev=896764&view=rev
Log:
Allow compilation with XP SDK

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/dtc.cpp

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/dtc.cpp
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/dtc.cpp?rev=896764&r1=896763&r2=896764&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/dtc.cpp (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/dtc.cpp Thu Jan  7 06:51:05 2010
@@ -25,12 +25,12 @@
 #include "acr_tlsd.h"
 #include "acr_vm.h"
 
-#if 0
 #include <comdef.h>
 #include <xolehlp.h>
 #include <txdtc.h>
 #include <transact.h>
 
+#if defined(__IKernelTransaction_FWD_DEFINED__)
 #pragma comment(lib, "xaswitch.lib")
 #pragma comment(lib, "xolehlp.lib")
 
@@ -135,4 +135,13 @@
     x_free(ts);
     return NULL;
 }
+#else
+
+extern "C"
+void *dtc_create_transaction(JNIEnv *_E)
+{
+    ACR_THROW_EX_IF_ERR(ACR_EX_OSERR, ACR_ENOTIMPL);
+    return NULL;
+}
+
 #endif