GitLab maintenance scheduled for Tomorrow, 2020-08-11, from 17:00 to 18:00 CT - Services will be unavailable during this time.

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

provide mac workaround for fmemopen code

parent 010ab8a3
......@@ -37,7 +37,11 @@ int configuration_load (const char *filepath,
rc = MPI_File_close(&fh);
assert(rc == MPI_SUCCESS);
#ifdef __APPLE__
f = fopen(filepath, "r");
#else
f = fmemopen(txtdata, txtsize, "rb");
#endif
assert(f);
*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