Skip to content

Commit

Permalink
Fix preprocessor problem
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed May 17, 2017
1 parent 0dd8654 commit ff63e56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/regressions/parallel/for_each_annotated_function.cpp
Expand Up @@ -27,10 +27,11 @@ int hpx_main()
hpx::util::thread_description desc(
hpx::threads::get_thread_description(hpx::threads::get_self_id())
);
HPX_TEST_EQ(std::string(desc.get_description()),
#if defined(HPX_HAVE_THREAD_DESCRIPTION)
HPX_TEST_EQ(std::string(desc.get_description()),
"annotated_function");
#else
HPX_TEST_EQ(std::string(desc.get_description()),
"<unknown>");
#endif
},
Expand Down

0 comments on commit ff63e56

Please sign in to comment.