mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
parent
d8a29fed49
commit
78e8a04dd6
2 changed files with 7 additions and 1 deletions
|
@ -608,7 +608,7 @@ sexp sexp_load_image (const char* filename, off_t offset, sexp_uint_t heap_free_
|
|||
goto done;
|
||||
}
|
||||
if (offset > 0 && fseek(fp, offset, SEEK_SET) < 0) {
|
||||
snprintf(gc_heap_err_str, ERR_STR_SIZE, "couldn't seek to image offset: %s -> %lld: %s\n", filename, offset, strerror(errno));
|
||||
snprintf(gc_heap_err_str, ERR_STR_SIZE, "couldn't seek to image offset: %s -> "PRIoff": %s\n", filename, offset, strerror(errno));
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
|
@ -256,6 +256,12 @@ typedef short sexp_int32_t;
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define PRIoff "%lld"
|
||||
#else
|
||||
#define PRIoff "%ld"
|
||||
#endif
|
||||
|
||||
#if SEXP_USE_LONG_PROCEDURE_ARGS
|
||||
typedef int sexp_proc_num_args_t;
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue