Skip to content

Commit

Permalink
Define R_NO_REMAP to avoid conflict with length() in C 17
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurdoch committed Jun 30, 2023
1 parent 5c3ea4a commit 05824c7
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 32,4 @@ rglClass/README.md$
^R/noOpenGL.R$
[.]JSDoc
^CRAN-SUBMISSION$
^shaders.txt$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 11,4 @@ revdep
dev
src-i386
src-x64
shaders.txt
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 1,5 @@
Package: rgl
Version: 1.1.19
Version: 1.1.20
Title: 3D Visualization Using OpenGL
Authors@R: c(person("Duncan", "Murdoch", role = c("aut", "cre"),
email = "[email protected]"),
Expand Down
6 changes: 4 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 1,4 @@
# rgl 1.1.19
# rgl 1.1.20

## Major changes

Expand Down Expand Up @@ -40,7 40,9 @@ quads properly when `meshColor == "faces"`.
properly.
* `addNormals()` sometimes gave `NaN` values due to rounding
error (issue #372).
* `arc3d()` missed plotting the last segment of the arc (issue #369).
* `arc3d()` sometimes missed plotting the last segment of the arc (issue #369).
* `R_NO_REMAP` has been defined to prevent conflict between
R internals and C 17 library.


# rgl 1.1.3
Expand Down
3 changes: 2 additions & 1 deletion src/Makevars.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 19,8 @@

PKG_CFLAGS=$(C_VISIBILITY)

PKG_CPPFLAGS=@NULL_CPPFLAGS@
PKG_CPPFLAGS=-DR_NO_REMAP @NULL_CPPFLAGS@

PKG_LIBS=@NULL_LIBS@

# These lines are only used if configure found OpenGL support
Expand Down
2 changes: 1 addition & 1 deletion src/Makevars.ucrt
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@

PKG_CPPFLAGS = \
-DHAVE_PNG_H -DHAVE_FREETYPE -Iext -Iext/ftgl -Iext/glad/include \
-DHAVE_PNG_H -DHAVE_FREETYPE -DR_NO_REMAP -Iext -Iext/ftgl -Iext/glad/include \
-I$(LOCAL_SOFT)/include/freetype2 \
-DRGL_W32

Expand Down
2 changes: 1 addition & 1 deletion src/Makevars.win.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 2,7 @@
# when this file is used instead of Makevars.ucrt:

PKG_CPPFLAGS = \
-DHAVE_PNG_H -DHAVE_FREETYPE -Iext -Iext/ftgl -Iext/glad/include \
-DHAVE_PNG_H -DHAVE_FREETYPE -DR_NO_REMAP -Iext -Iext/ftgl -Iext/glad/include \
-I$(LOCAL_SOFT)/include/freetype2 \
-DRGL_W32

Expand Down

0 comments on commit 05824c7

Please sign in to comment.