Detection of stdio.h in gmp.h
james at and.org
Fri Oct 17 20:14:31 CEST 2003
Patrick Pelissier <Patrick.Pelissier at loria.fr> writes:
> To detect if stdio.h is already defined in GMP, you use this code
> (in gmp.h):
> It appears for me to be a hack. On some systems, it may not work,
> and it may change in the future.
> Why don't use this:
> #if defined (EOF)
> #define _GMP_H_HAVE_FILE 1
> EOF should be defined only in stdio.h, and it is a standard constante, no?
Well I guess it's not unknown for people to define EOF themselves (at
Looking at ISO 9899:1999 184.108.40.206 stdio.h has to (to be conforming)
define the following macros...
# James Antill -- james at and.org
* ^From: .*james at and\.org
More information about the gmp-devel