Skip to content

Commit

Permalink
AvstpWrapper.cpp: disable avstp by default
Browse files Browse the repository at this point in the history
Fixes #1.

Signed-off-by: akarin <[email protected]>
  • Loading branch information
AkarinVS committed May 22, 2021
1 parent 0816f4f commit b5fd4f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/AvstpWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Name: dtor

AvstpWrapper::~AvstpWrapper ()
{
#if defined (_MSC_VER)
#if defined (_MSC_VER) && defined (USE_AVSTP)
::FreeLibrary (reinterpret_cast < ::HMODULE> (_dll_hnd));
_dll_hnd = 0;
#endif
Expand Down Expand Up @@ -150,14 +150,14 @@ AvstpWrapper::AvstpWrapper ()
, _avstp_enqueue_task_ptr (0)
, _avstp_wait_completion_ptr (0)
, _dll_hnd (
#if defined (_MSC_VER)
#if defined (_MSC_VER) && defined (USE_AVSTP)
AvstpFinder::find_lib ()
#else
0
#endif
)
{
#if defined (_MSC_VER)
#if defined (_MSC_VER) && defined (USE_AVSTP)
if (_dll_hnd == 0)
{
::OutputDebugStringW (
Expand All @@ -167,7 +167,7 @@ AvstpWrapper::AvstpWrapper ()
// throw std::runtime_error ("Cannot find avstp.dll.");
#endif
assign_fallback ();
#if defined (_MSC_VER)
#if defined (_MSC_VER) && defined (USE_AVSTP)
}

else
Expand Down

0 comments on commit b5fd4f2

Please sign in to comment.