Skip to content

Commit

Permalink
Remove required dependency on openmp headers
Browse files Browse the repository at this point in the history
  • Loading branch information
zeux committed Apr 11, 2024
1 parent 31379af commit c2d1001
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/infer.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include <stdio.h>
#include <stdlib.h>

#if !__has_include("omp.h")
#undef _OPENMP
#endif

#ifdef _OPENMP
#include <omp.h>
#endif
Expand Down

0 comments on commit c2d1001

Please sign in to comment.