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
+
1
9
2016-12-12 Dirk Eddelbuettel <
[email protected] >
2
10
3
11
* inst/include/Rcpp/sugar/functions/sample.h: In case sample.h from the
Original file line number Diff line number Diff line change 22
22
#ifndef Rcpp__Date_h
23
23
#define Rcpp__Date_h
24
24
25
+ #if defined(WIN32) || defined(__WIN32) || defined(__WIN32__)
26
+ #include < time.h>
27
+ #endif
28
+
25
29
namespace Rcpp {
26
30
27
31
class Date {
Original file line number Diff line number Diff line change 24
24
25
25
#include < RcppCommon.h>
26
26
27
+ #if defined(WIN32) || defined(__WIN32) || defined(__WIN32__)
28
+ #include < time.h>
29
+ #endif
30
+
27
31
namespace Rcpp {
28
32
29
33
class Datetime {
Original file line number Diff line number Diff line change 26
26
#ifndef Rcpp__sugar__sample_h
27
27
#define Rcpp__sugar__sample_h
28
28
29
+ #if defined(WIN32) || defined(__WIN32) || defined(__WIN32__)
30
+ #include < malloc.h>
31
+ #else
29
32
#include < alloca.h>
33
+ #endif
30
34
31
35
// In order to mirror the behavior of `base::sample`
32
36
// as closely as possible, this file contains adaptations
You can’t perform that action at this time.
0 commit comments