Skip to content

Commit

Permalink
fix on MAC
Browse files Browse the repository at this point in the history
  • Loading branch information
DavZim committed Aug 25, 2024
1 parent f7d2485 commit bed2863
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/count_messages.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "count_messages.h"

#ifdef __APPLE__
# define fseeko64 fseeko
#endif

// counts messages in a file
std::vector<int64_t> count_messages_internal(std::string filename,
int64_t max_buffer_size) {
Expand Down
4 changes: 4 additions & 0 deletions src/filter_itch.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "filter_itch.h"

#ifdef __APPLE__
# define fseeko64 fseeko
#endif

// [[Rcpp::export]]
void filter_itch_impl(std::string infile, std::string outfile,
int64_t start, int64_t end,
Expand Down
4 changes: 4 additions & 0 deletions src/read_functions.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "read_functions.h"

#ifdef __APPLE__
# define fseeko64 fseeko
#endif

// [[Rcpp::export]]
Rcpp::List read_itch_impl(std::vector<std::string> classes,
std::string filename,
Expand Down

0 comments on commit bed2863

Please sign in to comment.