mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Assume that if we have GCC, we have GCC >= 3.0.
* libguile/__scm.h (SCM_GNUC_PREREQ): Remove this definition. Assume that if we have GCC, that we have GCC >= 3.0 (from 2002). Adapt uses to use simply "#ifdef __GNUC__". * libguile/deprecated.h (SCM_GNUC_PREREQ): Add deprecated definition.
This commit is contained in:
parent
e48567fa6c
commit
63e5eafd83
2 changed files with 12 additions and 12 deletions
|
@ -25,6 +25,15 @@
|
|||
|
||||
/* Deprecated declarations go here. */
|
||||
|
||||
/* Return true (non-zero) if GCC version MAJ.MIN or later is being used
|
||||
* (macro taken from glibc.) */
|
||||
#if defined __GNUC__ && defined __GNUC_MINOR__
|
||||
# define SCM_GNUC_PREREQ(maj, min) \
|
||||
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
|
||||
#else
|
||||
# define SCM_GNUC_PREREQ(maj, min) 0
|
||||
#endif
|
||||
|
||||
#define scm_i_jmp_buf scm_i_jmp_buf_GONE__USE_JMP_BUF_INSTEAD
|
||||
|
||||
void scm_i_init_deprecated (void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue