Skip to content

Commit

Permalink
fix define
Browse files Browse the repository at this point in the history
  • Loading branch information
nic11 committed Feb 10, 2025
1 parent 4e73797 commit c4477bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if(WITH_ANTIGO OR DEFINED ENV{DEPLOY_ACTION})
add_compile_definitions(WITH_ANTIGO)
endif()

# At the moment of writing this gives ~10% speedup of cmake command on Windows
# https://gitlab.kitware.com/cmake/cmake/-/issues/23154
if(POLICY 0115)
Expand Down
8 changes: 4 additions & 4 deletions viet/include/Promise.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
// #ifdef WITH_ANTIGO
#ifdef WITH_ANTIGO
#include "antigo/Context.h"
// #endif
#endif
#include <functional>
#include <memory>
#include <stdexcept>
Expand Down Expand Up @@ -116,7 +116,7 @@ class Promise

operator AnyPromise() { return AnyPromise(*this); }

// #ifdef WITH_ANTIGO
#ifdef WITH_ANTIGO
~Promise() {
ANTIGO_CONTEXT_INIT(ctx);

Expand All @@ -125,7 +125,7 @@ class Promise
ctx.Orphan();
}
}
// #endif
#endif

private:
struct Impl
Expand Down

0 comments on commit c4477bc

Please sign in to comment.