winverbs: export WvGetObject as extern C
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 3 Jun 2009 17:44:16 +0000 (17:44 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 3 Jun 2009 17:44:16 +0000 (17:44 +0000)
If a standard C program or library tries to link against winverbs, it will fail
because of C++ name decoration.  Export the WvGetObject call using C naming
conventions.

This allows DAPL to link directly against winverbs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2232 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

inc/user/rdma/winverbs.h

index af2d8b2..e707cd9 100644 (file)
@@ -1510,6 +1510,10 @@ DECLARE_INTERFACE_(IWVProvider, IUnknown)
                ) PURE;\r
 };\r
 \r
+#ifdef __cplusplus\r
+extern "C" __declspec(dllexport) HRESULT WvGetObject(REFIID riid, LPVOID FAR* ppvObj);\r
+#else\r
 __declspec(dllexport) HRESULT WvGetObject(REFIID riid, LPVOID FAR* ppvObj);\r
+#endif\r
 \r
 #endif // _WINVERBS_H_\r