Skip to content

Commit fb114de

Browse files
author
Hackathon User
committed
fix: resolve distributed tests compilation failures by correcting preprocessor guard
- Changed to in local.hpp. Including hpx_main.hpp in a distributed build causes main() to be macro-replaced with hpx_startup::user_main, leading to linkage errors in tests that manually define main() but happen to include headers that pull in local.hpp. Signed-off-by: shivansh023023 <singhshivansh023@gmail.com>
1 parent a0bd24b commit fb114de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/core/include_local/include/hpx/local.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include <hpx/config.hpp>
2525

26-
#if defined(HPX_HAVE_DISTRIBUTED_RUNTIME) && !defined(HPX_NO_MAIN)
26+
#if !defined(HPX_HAVE_DISTRIBUTED_RUNTIME) && !defined(HPX_NO_MAIN)
2727
#if __has_include(<hpx/hpx_main.hpp>)
2828
#include <hpx/hpx_main.hpp> // hpxinspect:noinclude:hpx/hpx_main.hpp
2929
#endif

0 commit comments

Comments
 (0)