Skip to content

Commit

Permalink
Fix compilation on older R, Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Aug 9, 2024
1 parent b1a9e68 commit d0f736e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/write.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <cmath>
#define __STDC_FORMAT_MACROS 1
#include <inttypes.h>

#include "lib/nanoparquet.h"
Expand Down
5 changes: 5 additions & 0 deletions tests/testthat/test-write-encodings.R
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ test_that("double -> INT96", {
on.exit(unlink(tmp), add = TRUE)
schema <- "INT96"

# TODO: fix tests
if (.Platform$OS.type == "windows" && getRversion() < "4.2.0") {
skip("Needs INT96 read w/o converting to time
}
do <- function(d) {
test_write(d, schema)
test_write(d, schema, "PLAIN")
Expand Down

0 comments on commit d0f736e

Please sign in to comment.