Skip to content

Commit

Permalink
fwrite define omp_get_num_threads to compile without error, #1652
Browse files Browse the repository at this point in the history
  • Loading branch information
arunsrinivasan committed Apr 19, 2016
1 parent a8fac4e commit c1b0972
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
#include <unistd.h> // for access()
#include <fcntl.h>
#include <time.h>

#ifdef _OPENMP
#include <omp.h>
#include <omp.h>
#else
#define omp_get_num_threads() 0 // so it still compiles on machines with compilers void of openmp support
#endif

#ifdef WIN32
#include <sys/types.h>
#include <sys/stat.h>
Expand Down

0 comments on commit c1b0972

Please sign in to comment.