Skip to content

Commit 2603c2a

Browse files
authored
Merge pull request #1038 from redboltz/fix_1037
Fixed #1037.
2 parents fb64ea0 + 535bf33 commit 2603c2a

4 files changed

Lines changed: 17 additions & 13 deletions

File tree

.github/depends/zlib.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ while getopts "b:t:p:" c; do
2727
done
2828

2929
mkdir $prefix || exit 1
30-
wget https://zlib.net/zlib-1.2.12.tar.gz || exit 1
31-
tar -xf zlib-1.2.12.tar.gz || exit 1
32-
cd zlib-1.2.12
30+
wget https://zlib.net/zlib-1.2.13.tar.gz || exit 1
31+
tar -xf zlib-1.2.13.tar.gz || exit 1
32+
cd zlib-1.2.13
3333

3434
build()
3535
{

.github/workflows/gha.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/cache@v2
2626
with:
2727
path: ~/boost-prefix/
28-
key: ${{ runner.os }}-boost-1-76-0-2021-08-09
28+
key: ${{ runner.os }}-boost-1-76-0-2022-08-09
2929

3030
- name: Build boost
3131
if: steps.cache-boost.outputs.cache-hit != 'true'
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/cache@v2
3737
with:
3838
path: ~/zlib-prefix/
39-
key: ${{ runner.os }}-zlib-1-2-12-2021-08-09
39+
key: ${{ runner.os }}-zlib-1-2-13-2022-11-02
4040

4141
- name: Build zlib
4242
if: steps.cache-zlib.outputs.cache-hit != 'true'
@@ -111,7 +111,7 @@ jobs:
111111
uses: actions/cache@v2
112112
with:
113113
path: ~/zlib-prefix/
114-
key: ${{ runner.os }}-zlib-1-2-12-2021-08-09
114+
key: ${{ runner.os }}-zlib-1-2-13-2022-11-02
115115

116116
- name: Build zlib
117117
if: steps.cache-zlib.outputs.cache-hit != 'true'

appveyor.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ environment:
2323
boost_subdir: lib32-msvc-14.0
2424
build_script:
2525
- ps: |
26-
appveyor DownloadFile http://zlib.net/zlib-1.2.12.tar.gz -FileName zlib-1.2.12.tar.gz
27-
7z x zlib-1.2.12.tar.gz 2> $null
28-
7z x zlib-1.2.12.tar 2> $null
29-
cd zlib-1.2.12
26+
appveyor DownloadFile http://zlib.net/zlib-1.2.13.tar.gz -FileName zlib-1.2.13.tar.gz
27+
7z x zlib-1.2.13.tar.gz 2> $null
28+
7z x zlib-1.2.13.tar 2> $null
29+
cd zlib-1.2.13
3030
3131
md build
3232
md prefix
3333
cd build
3434
3535
cmake `
3636
-G $env:msvc `
37-
-D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.12\prefix" `
37+
-D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.13\prefix" `
3838
..
3939
if ($LastExitCode -ne 0) { exit $LastExitCode }
4040
@@ -52,7 +52,7 @@ build_script:
5252
-D MSGPACK_BUILD_EXAMPLES=ON `
5353
-D MSGPACK_BUILD_TESTS=ON `
5454
-D CMAKE_EXE_LINKER_FLAGS=/LIBPATH:"$env:boost_prefix\$env:boost_subdir" `
55-
-D CMAKE_PREFIX_PATH="$env:boost_prefix;$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.12\prefix" `
55+
-D CMAKE_PREFIX_PATH="$env:boost_prefix;$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.13\prefix" `
5656
-D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\prefix" `
5757
-D CMAKE_CXX_FLAGS="/D_VARIADIC_MAX=10 /EHsc /DBOOST_ALL_DYN_LINK" `
5858
..
@@ -62,5 +62,5 @@ build_script:
6262
if ($LastExitCode -ne 0) { exit $LastExitCode }
6363
6464
test_script:
65-
- set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%\zlib-1.2.12\build\Release;%APPVEYOR_BUILD_FOLDER%\build\release;%boost_prefix%\%boost_subdir%
65+
- set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%\zlib-1.2.13\build\Release;%APPVEYOR_BUILD_FOLDER%\build\release;%boost_prefix%\%boost_subdir%
6666
- ctest -VV -C Release

include/msgpack/v1/adaptor/cpp11/chrono.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#ifndef MSGPACK_V1_TYPE_CPP11_CHRONO_HPP
1212
#define MSGPACK_V1_TYPE_CPP11_CHRONO_HPP
1313

14+
#if !defined(MSGPACK_NO_BOOST)
15+
1416
#include "msgpack/versioning.hpp"
1517
#include "msgpack/adaptor/adaptor_base.hpp"
1618
#include "msgpack/object.hpp"
@@ -248,4 +250,6 @@ struct object_with_zone<std::chrono::time_point<Clock, Duration>> {
248250

249251
} // namespace msgpack
250252

253+
#endif // !defined(MSGPACK_NO_BOOST)
254+
251255
#endif // MSGPACK_V1_TYPE_CPP11_CHRONO_HPP

0 commit comments

Comments
 (0)