Skip to content

Commit 55daba5

Browse files
committed
remove old code (delegated to platform/sysmacros.h)
1 parent ab7e5eb commit 55daba5

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

inst/include/RcppCommon.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,6 @@
3232

3333
#include <Rcpp/platform/sysmacros.h>
3434

35-
// include <sys/sysmacros.h>, and then remove stupid
36-
// 'major', 'minor' and 'makedev' defines. this works
37-
// around Rinternals.h eventually including this header
38-
// and letting the macros leak through
39-
#if defined(__GNUC__) && !defined(__clang__)
40-
41-
# ifdef major
42-
# warning Macro 'major' will be undefined! See https://bugzilla.redhat.com/show_bug.cgi?id=130601.
43-
# endif
44-
45-
# ifdef minor
46-
# warning Macro 'minor' will be undefined! See https://bugzilla.redhat.com/show_bug.cgi?id=130601.
47-
# endif
48-
49-
# ifdef makedev
50-
# warning Macro 'makedev' will be undefined! See https://bugzilla.redhat.com/show_bug.cgi?id=130601.
51-
# endif
52-
53-
# include <sys/sysmacros.h>
54-
55-
# undef major
56-
# undef minor
57-
# undef makedev
58-
59-
#endif
60-
6135
// include R headers, but set R_NO_REMAP and access everything via Rf_ prefixes
6236
#define MAXELTSIZE 8192
6337
#define R_NO_REMAP

0 commit comments

Comments
 (0)