Skip to content

Commit d93e4ed

Browse files
committed
Small #ifdef _OPENMP fix
1 parent 33468dd commit d93e4ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/reader/batch_reader.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ carquet_status_t carquet_batch_reader_next(
326326
(void)carquet_column_read_batch(col_reader, NULL, 0, NULL, NULL);
327327
}
328328
}
329+
#endif
329330

330331
/* ========================================================================
331332
* MAIN COLUMN READING PHASE
@@ -334,6 +335,7 @@ carquet_status_t carquet_batch_reader_next(
334335
* this phase is mostly memory copies which are fast.
335336
*/
336337
int32_t col_i; /* Declared outside for MSVC OpenMP compatibility */
338+
#ifdef _OPENMP
337339
#pragma omp parallel for num_threads(num_threads) schedule(dynamic)
338340
#endif
339341
for (col_i = 0; col_i < batch_reader->num_projected; col_i++) {

0 commit comments

Comments
 (0)