commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r896764 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/dtc.cpp
Date Thu, 07 Jan 2010 06:51:08 GMT
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



Mime
View raw message