Changeset 25639
- Timestamp:
- 10/06/20 14:42:42 (4 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/m4/issm_options.m4
r25627 r25639 192 192 193 193 AC_MSG_CHECKING([if this is a Mac build]) 194 MAC_FMEMOPEN=0 194 195 case "${host_os}" in 195 196 *darwin*) 196 197 IS_MAC=yes 198 if [[ $(system_profiler SPSoftwareDataType | $(which grep) "System Version:" | sed -e "s/[[:space:]]*System Version: macOS //" | cut -d "." -f 2) -ge 13 ]]; then 199 MAC_FMEMOPEN=yes 200 else 201 MAC_FMEMOPEN=no 202 fi 197 203 ;; 198 204 *) … … 201 207 esac 202 208 AM_CONDITIONAL([MAC], [test "${IS_MAC}" == "yes"]) 209 AM_CONDITIONAL([MAC_FMEMOPEN], [test "${MAC_FMEMOPEN}" == "yes"]) 203 210 AC_MSG_RESULT([${IS_MAC}]) 204 211 … … 2332 2339 2333 2340 AC_MSG_CHECKING(for Gmsh version) 2334 GMSH_VERSION_MAJOR=`${GMSH_ROOT}/bin/gmsh -info | grep "Version" | sed -e "s/Version@<:@@<:@:blank:@:>@@:>@*:@<:@@<:@:blank:@:>@@:>@//" | cut -d "." -f 1`2341 GMSH_VERSION_MAJOR=`${GMSH_ROOT}/bin/gmsh -info | grep "Version" | sed -e "s/Version@<:@@<:@:blank:@:>@@:>@*:@<:@@<:@:blank:@:>@@:>@//" | cut -d "." -f 1` 2335 2342 AC_MSG_RESULT([${GMSH_VERSION_MAJOR}]) 2336 2343 AC_DEFINE_UNQUOTED(_GMSH_VERSION_MAJOR_, $GMSH_VERSION_MAJOR, [Gmsh major version]) -
issm/trunk-jpl/src/c/Makefile.am
r25632 r25639 21 21 22 22 #Core sources 23 issm_sources = 24 25 #GLIBC sources {{{ 26 if MAC 27 if !MAC_FMEMOPEN 28 issm_sources += \ 29 ./ext/fmemopen/fmemopen.c 30 endif 31 endif 32 #}}} 33 23 34 #BAMG sources {{{ 24 issm_sources =25 35 if BAMG 26 36 issm_sources += \ -
issm/trunk-jpl/src/c/modules/QmuStatisticsx/QmuStatisticsx.cpp
r25615 r25639 174 174 /*figure out size of file, and read the whole thing:*/ 175 175 _printf0_(" reading file:\n"); 176 fseek 176 fseek(fid, 0, SEEK_END); 177 177 length = ftell (fid); 178 fseek 178 fseek(fid, 0, SEEK_SET); 179 179 buffer = xNew<char>(length); 180 fread 180 fread(buffer, sizeof(char), length, fid); 181 181 182 182 /*close file:*/ 183 fclose 183 fclose(fid); 184 184 185 185 /*create a memory stream with this buffer:*/ -
issm/trunk-jpl/src/c/modules/QmuStatisticsx/QmuStatisticsx.h
r25615 r25639 6 6 7 7 #include "../../classes/classes.h" 8 9 #if MAC && !MAC_FMEMOPEN 10 #include "../../ext/fmemopen/fmemopen.h" 11 #endif 8 12 9 13 int ComputeMeanVariance(Parameters* parameters,Results* results,int color, ISSM_MPI_Comm statcomm);
Note:
See TracChangeset
for help on using the changeset viewer.