Skip to content

Commit 6d03e1a

Browse files
committed
[windows] undef LoadLibrary from windows.h before CppInterOp's Dispatch API
We lose `CppImpl::LoadLibrary` otherwise
1 parent 0bea314 commit 6d03e1a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • interpreter/CppInterOp/include/CppInterOp

interpreter/CppInterOp/include/CppInterOp/Dispatch.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@
2121
#error "To use the Dispatch mechanism, do not include CppInterOp.h directly."
2222
#endif
2323

24-
#include <CppInterOp/CppInterOp.h>
25-
26-
#include <cstdlib>
27-
#include <iostream>
28-
#include <mutex>
29-
3024
#ifdef _WIN32
3125
#include <windows.h>
3226
#undef LoadLibrary
3327
#else
3428
#include <dlfcn.h>
3529
#endif
3630

31+
#include <CppInterOp/CppInterOp.h>
32+
33+
#include <cstdlib>
34+
#include <iostream>
35+
#include <mutex>
36+
3737
using CppFnPtrTy = void (*)();
3838
///\param[in] procname - the name of the FunctionEntry in the symbol lookup
3939
/// table.

0 commit comments

Comments
 (0)