Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Sep 19, 2024
1 parent b72c6e4 commit 6232a40
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Makevars
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
LIBDIR = myrustlib/target/release
STATLIB = $(LIBDIR)/libmyrustlib.a
PKG_CFLAGS = -pthread
PKG_CPPFLAGS = -DSTRICT_R_HEADERS -DR_NO_REMAP
PKG_LIBS = -L$(LIBDIR) -lmyrustlib -lresolv -pthread

#all: clean
Expand Down
1 change: 1 addition & 0 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
TARGET = $(shell "$(R_HOME)/bin$(R_ARCH_BIN)/Rscript.exe" "../tools/rustarch.R")
LIBDIR = myrustlib/target/$(TARGET)/release
STATLIB = $(LIBDIR)/libmyrustlib.a
PKG_CPPFLAGS = -DSTRICT_R_HEADERS -DR_NO_REMAP
PKG_LIBS = -L$(LIBDIR) -lmyrustlib -lws2_32 -ladvapi32 -lgdi32 -lbcrypt -lcrypt32 -luserenv -lntdll

all: clean rustup
Expand Down
2 changes: 0 additions & 2 deletions src/wrapper.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#define R_NO_REMAP
#define STRICT_R_HEADERS
#include <Rinternals.h>

// Import C headers for rust API
Expand Down

0 comments on commit 6232a40

Please sign in to comment.