Skip to content

Commit

Permalink
More tweaks for web assembly build
Browse files Browse the repository at this point in the history
  • Loading branch information
grimbough committed Oct 20, 2023
1 parent 5695d6b commit 6231085
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -3620,7 +3620,7 @@ if test -z "$HAVE_ZSTD"; then
printf "%s\n" "$as_me: compiling bundled Zstd library" >&6;}
BUILD_ZSTD=libzstd.a
ZSTD_LIB=compression_tools/zstd/libzstd.a
ZSTD_LIB=./compression_tools/zstd/libzstd.a
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using system Zstd library" >&5
Expand Down
6 changes: 5 additions & 1 deletion src/compression_tools/blosc/lib/blosc-1.20.1/blosc-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@

#if !defined(NO_RLIB)
# include <R_ext/Print.h>
# include <R_ext/Error.h>
#else
# ifndef Rprintf
# define Rprintf(x, ...) (printf(x, ...))
# define Rprintf(...) (printf(__VA_ARGS__))
# endif
# ifndef REprintf
# define REprintf(...) (fprintf(stderr, __VA_ARGS__))
# endif
#endif

Expand Down
4 changes: 2 additions & 2 deletions src/compression_tools/blosc/lib/snappy-1.1.1/snappy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
# include <R_ext/Print.h>
#else
# ifndef Rprintf
# define Rprintf(x, ...) (printf(x, ...))
# define Rprintf(...) (printf(__VA_ARGS__))
# endif
# ifndef error
# define error(x, ...) (fprintf(stderr, x, ...); abort())
# define error(...) ({fprintf(stderr, __VA_ARGS__); abort();})
# endif
#endif

Expand Down

0 comments on commit 6231085

Please sign in to comment.