File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ 2016-12-13 Nathan Russell <
[email protected] >
2+
3+ * inst/include/Rcpp/sugar/functions/sample.h: Use malloc.h instead of
4+ alloca.h when building on Windows
5+ * inst/include/Rcpp/date_datetime/Date.h: Include time.h when building
6+ on Windows
7+ * inst/include/Rcpp/date_datetime/Datetime.h: Idem
8+
192016-12-12 Dirk Eddelbuettel <
[email protected] >
210
311 * inst/include/Rcpp/sugar/functions/sample.h: In case sample.h from the
Original file line number Diff line number Diff line change 2222#ifndef Rcpp__Date_h
2323#define Rcpp__Date_h
2424
25+ #if defined(WIN32) || defined(__WIN32) || defined(__WIN32__)
26+ #include < time.h>
27+ #endif
28+
2529namespace Rcpp {
2630
2731 class Date {
Original file line number Diff line number Diff line change 2424
2525#include < RcppCommon.h>
2626
27+ #if defined(WIN32) || defined(__WIN32) || defined(__WIN32__)
28+ #include < time.h>
29+ #endif
30+
2731namespace Rcpp {
2832
2933 class Datetime {
Original file line number Diff line number Diff line change 2626#ifndef Rcpp__sugar__sample_h
2727#define Rcpp__sugar__sample_h
2828
29+ #if defined(WIN32) || defined(__WIN32) || defined(__WIN32__)
30+ #include < malloc.h>
31+ #else
2932#include < alloca.h>
33+ #endif
3034
3135// In order to mirror the behavior of `base::sample`
3236// as closely as possible, this file contains adaptations
You can’t perform that action at this time.
0 commit comments