Skip to content

Commit f26aa09

Browse files
committed
don't include sys/sysmacros.h on windows
1 parent 19f5b10 commit f26aa09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/platform/sysmacros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// 'major', 'minor' and 'makedev' defines. this works
2525
// around Rinternals.h eventually including this header
2626
// and letting the macros leak through
27-
#if defined(__GNUC__) && !defined(__APPLE__)
27+
#if defined(__GNUC__) && !defined(__APPLE__) && !defined(WIN32)
2828

2929
# ifdef major
3030
# define RCPP_HAS_MAJOR_MACRO

0 commit comments

Comments
 (0)