Skip to content

Commit 9486a26

Browse files
authored
Issue 651: add include for ssize_t on clang 15 (#652)
* Add include for ssize_t on clang 15 * Replace VS2022 with VS2019 Adapted from pni-libraries/libpninexus#240.
1 parent 0b197da commit 9486a26

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed

.github/workflows/cmake-build.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,78 @@ jobs:
102102
run: |
103103
cd build
104104
ctest --extra-verbose --no-tests=error
105+
windows-2019:
106+
strategy:
107+
matrix:
108+
shared: [
109+
"shared",
110+
"static"
111+
]
112+
boost: [
113+
"boost",
114+
"stdfs"
115+
]
116+
runs-on: windows-2019
117+
steps:
118+
- uses: actions/checkout@v2
119+
- name: Add MSVC to PATH
120+
uses: ilammy/msvc-dev-cmd@v1
121+
- name: Set environment variables
122+
run: |
123+
bash .github/workflows/set_env_vars.sh \
124+
${{ matrix.shared }} \
125+
${{ matrix.boost }}
126+
- name: Install and configure conan
127+
run: |
128+
python -m pip install --upgrade pip
129+
pip install --upgrade conan==2.0.2
130+
CONAN_ARGS="--profile .github/workflows/conan/profiles/vs2019 \
131+
-o with_boost=${H5CPP_WITH_BOOST} \
132+
-o shared=${H5CPP_SHARED} \
133+
-o *:shared=${H5CPP_SHARED}"
134+
conan profile detect
135+
conan remove -c zlib/*
136+
conan lock create conanfile.py ${CONAN_ARGS} --lockfile-packages --lockfile-out base.lock
137+
conan lock create conanfile.py ${CONAN_ARGS} --build missing
138+
- name: cache conan dependencies
139+
uses: actions/cache@v2
140+
with:
141+
path: ~/.conan/data
142+
key: conan-vs2019-${{ hashfiles('base.lock') }}-${{ hashFiles('conan.lock') }}
143+
restore-keys: |
144+
conan-vs-2019-${{ hashfiles('base.lock') }}
145+
conan-vs-2019
146+
- name: install conan dependencies
147+
run: |
148+
CONAN_ARGS="--profile .github/workflows/conan/profiles/vs2019 \
149+
-o with_boost=${H5CPP_WITH_BOOST} \
150+
-o shared=${H5CPP_SHARED} \
151+
-o *:shared=${H5CPP_SHARED}"
152+
conan remove -c zlib/*
153+
conan install . ${CONAN_ARGS} \
154+
--output-folder build \
155+
--lockfile conan.lock \
156+
--build missing \
157+
--update \
158+
--generator VirtualRunEnv
159+
- name: build with cmake
160+
run: |
161+
CONAN_ARGS="--profile .github/workflows/conan/profiles/vs2019 \
162+
-o with_boost=${H5CPP_WITH_BOOST} \
163+
-o shared=${H5CPP_SHARED} \
164+
-o *:shared=${H5CPP_SHARED}"
165+
conan build . ${CONAN_ARGS} \
166+
--lockfile conan.lock \
167+
--output-folder build
168+
- name: run tests
169+
run: |
170+
cd build
171+
.\conanbuildenv-release-x86_64.ps1
172+
.\conanrunenv-release-x86_64.ps1
173+
ctest --extra-verbose --no-tests=error --output-on-failure
174+
shell: pwsh
105175
windows-2022:
176+
if: false
106177
strategy:
107178
matrix:
108179
shared: [
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[settings]
2+
arch=x86_64
3+
build_type=Release
4+
compiler=msvc
5+
compiler.version=192
6+
compiler.runtime=dynamic
7+
os=Windows
8+
9+
[conf]
10+
tools.env.virtualenv:powershell=True

src/h5cpp/core/iterator.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#pragma once
2626

2727
#include <stdexcept>
28+
#include <sys/types.h>
2829
#include <h5cpp/core/windows.hpp>
2930

3031
namespace hdf5{

0 commit comments

Comments
 (0)