Skip to content

Commit 010a5a7

Browse files
committed
[OpenMP] Fix build issue with libomp when OMPT is disabled
1 parent 0762b2e commit 010a5a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openmp/runtime/src/kmp_csupport.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,15 @@ void __kmpc_fork_call_if(ident_t *loc, kmp_int32 argc, kmpc_micro microtask,
351351
} else {
352352
__kmpc_serialized_parallel(loc, gtid);
353353

354-
#ifdef OMPT_SUPPORT
354+
#if OMPT_SUPPORT
355355
void *exit_frame_ptr;
356356
#endif
357357

358358
if (args)
359359
__kmp_invoke_microtask(VOLATILE_CAST(microtask_t) microtask, gtid,
360360
/*npr=*/0,
361361
/*argc=*/1, &args
362-
#ifdef OMPT_SUPPORT
362+
#if OMPT_SUPPORT
363363
,
364364
&exit_frame_ptr
365365
#endif
@@ -369,7 +369,7 @@ void __kmpc_fork_call_if(ident_t *loc, kmp_int32 argc, kmpc_micro microtask,
369369
/*npr=*/0,
370370
/*argc=*/0,
371371
/*args=*/nullptr
372-
#ifdef OMPT_SUPPORT
372+
#if OMPT_SUPPORT
373373
,
374374
&exit_frame_ptr
375375
#endif

0 commit comments

Comments
 (0)