Skip to content

Commit

Permalink
Merge branch 'martin-olivier:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dayfixer authored Oct 11, 2023
2 parents 401b933 + 92ab0f3 commit 9dd9c30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions include/dylib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@
#endif

#if (defined(_WIN32) || defined(_WIN64))
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
#include <Psapi.h>
#else
#include <windows.h>
#endif
#else
#include <dlfcn.h>
#endif

Expand Down
3 changes: 0 additions & 3 deletions tests/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ TEST(system_lib, basic_test) {
#elif defined(__APPLE__)
dylib lib("ssh2");
lib.get_function<const char *(int)>("libssh2_version");
#else
dylib lib("pthread");
lib.get_function<int()>("pthread_yield");
#endif
}

Expand Down

0 comments on commit 9dd9c30

Please sign in to comment.