Skip to content

Commit

Permalink
dll export
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Jan 18, 2025
1 parent 29dcdb5 commit b77ae67
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tbb-compat/tbb-compat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
#include "../tbb/src/tbb/main.h"
#include "../tbb/src/tbb/thread_data.h"

#ifdef _WIN32
# define DLL_EXPORT __declspec(dllexport)
#else
# define DLL_EXPORT
#endif

namespace tbb {

namespace interface6 {
Expand Down Expand Up @@ -127,7 +133,7 @@ class task_scheduler_observer : public internal::task_scheduler_observer_v3 {
namespace tbb {
namespace internal {

__declspec(dllexport)
DLL_EXPORT
void __TBB_EXPORTED_FUNC task_scheduler_observer_v3::observe( bool enable ) {
auto* tso = (tbb::detail::d1::task_scheduler_observer*) (this);
tbb::detail::r1::observe(*tso, enable);
Expand Down

0 comments on commit b77ae67

Please sign in to comment.