Skip to content

Commit b9b935f

Browse files
authored
Merge pull request #635 from RcppCore/bugfix/solaris_struct_tm
Protect tm_gmtoff on Solaris (closes #634)
2 parents f57467b + 2e36e87 commit b9b935f

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2017-01-17 Dirk Eddelbuettel <[email protected]>
2+
3+
* DESCRIPTION (Version, Date): Roll minor version and Date
4+
5+
* inst/include/Rcpp/config.h (RCPP_DEV_VERSION): Roll minor
6+
7+
* src/Date.cpp (Rcpp): Do not access tm_gmtoff on Solaris
8+
19
2017-01-14 Dirk Eddelbuettel <[email protected]>
210

311
* DESCRIPTION: Release 0.12.9

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: Rcpp
22
Title: Seamless R and C++ Integration
3-
Version: 0.12.9
4-
Date: 2017-01-14
3+
Version: 0.12.9.1
4+
Date: 2017-01-17
55
Author: Dirk Eddelbuettel, Romain Francois, JJ Allaire, Kevin Ushey, Qiang Kou,
66
Nathan Russell, Douglas Bates and John Chambers
77
Maintainer: Dirk Eddelbuettel <[email protected]>

inst/include/Rcpp/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define RCPP_VERSION Rcpp_Version(0,12,9)
3131

3232
// the current source snapshot
33-
#define RCPP_DEV_VERSION RcppDevVersion(0,12,9,0)
33+
#define RCPP_DEV_VERSION RcppDevVersion(0,12,9,1)
3434

3535
#endif
3636

src/Date.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ struct tzhead {
13471347
idays -= ip[tmp->tm_mon];
13481348
tmp->tm_mday = (int) (idays + 1);
13491349
tmp->tm_isdst = 0;
1350-
#if ! (defined(__MINGW32__) || defined(__MINGW64__))
1350+
#if ! (defined(__MINGW32__) || defined(__MINGW64__) || defined(__SUNPRO_CC))
13511351
//#ifdef HAVE_TM_GMTOFF
13521352
tmp->tm_gmtoff = offset;
13531353
#endif

0 commit comments

Comments
 (0)