Skip to content

Commit f735400

Browse files
authored
Merge pull request #6 from cerati/fix-compile-errs-macos
fix compilation errors on mac os
2 parents 3ad0bdb + c012b8b commit f735400

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

utils/add_key.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <unordered_map>
2222
#include <vector>
2323
#include <tuple>
24-
#include <bits/stdc++.h>
24+
#include <map>
2525
using namespace std;
2626

2727
#include <hdf5.h>

utils/add_spill_index.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ int main(int argc, char **argv)
291291
/* /spill/run should not be of zero-sized */
292292
if (dset_dims[0] == 0) RETURN_ERROR("Zero-sized group '/spill'", "run");
293293

294-
newsrc_name = basename(src_path);
294+
newsrc_name = &basename(src_path)[0];
295295
src_exist = H5Lexists(spill_id, newsrc_name, H5P_DEFAULT);
296296
if (src_exist < 0) RETURN_ERROR("H5Lexists", newsrc_name)
297297
if (src_exist > 0) {

0 commit comments

Comments
 (0)