Commit 3d42903f authored by Kevin Harms's avatar Kevin Harms
Browse files

provide mac workaround for fmemopen code

parent 010ab8a3
...@@ -37,7 +37,11 @@ int configuration_load (const char *filepath, ...@@ -37,7 +37,11 @@ int configuration_load (const char *filepath,
rc = MPI_File_close(&fh); rc = MPI_File_close(&fh);
assert(rc == MPI_SUCCESS); assert(rc == MPI_SUCCESS);
#ifdef __APPLE__
f = fopen(filepath, "r");
#else
f = fmemopen(txtdata, txtsize, "rb"); f = fmemopen(txtdata, txtsize, "rb");
#endif
assert(f); assert(f);
*handle = txtfile_openStream(f, &error); *handle = txtfile_openStream(f, &error);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment