mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
build: Add SCM_T_OFF_MAX and SCM_T_OFF_MIN to scmconfig.h.
* libguile/gen-scmconfig.c (main): Add SCM_T_OFF_MAX and SCM_T_OFF_MIN to the generated 'scmconfig.h' file.
This commit is contained in:
parent
f57aba7ab7
commit
e1788828df
1 changed files with 6 additions and 0 deletions
|
@ -376,10 +376,16 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
#if defined GUILE_USE_64_CALLS && defined HAVE_STAT64
|
#if defined GUILE_USE_64_CALLS && defined HAVE_STAT64
|
||||||
pf ("typedef scm_t_int64 scm_t_off;\n");
|
pf ("typedef scm_t_int64 scm_t_off;\n");
|
||||||
|
pf ("#define SCM_T_OFF_MAX SCM_T_INT64_MAX\n");
|
||||||
|
pf ("#define SCM_T_OFF_MIN SCM_T_INT64_MIN\n");
|
||||||
#elif SIZEOF_OFF_T == SIZEOF_INT
|
#elif SIZEOF_OFF_T == SIZEOF_INT
|
||||||
pf ("typedef int scm_t_off;\n");
|
pf ("typedef int scm_t_off;\n");
|
||||||
|
pf ("#define SCM_T_OFF_MAX INT_MAX\n");
|
||||||
|
pf ("#define SCM_T_OFF_MIN INT_MIN\n");
|
||||||
#else
|
#else
|
||||||
pf ("typedef long int scm_t_off;\n");
|
pf ("typedef long int scm_t_off;\n");
|
||||||
|
pf ("#define SCM_T_OFF_MAX LONG_MAX\n");
|
||||||
|
pf ("#define SCM_T_OFF_MIN LONG_MIN\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pf ("/* Define to 1 if the compiler supports the "
|
pf ("/* Define to 1 if the compiler supports the "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue