K
Keith Thompson
Francesco S. Carta said:]
How did you confirm it?
If this source file:
#include<errno.h>
#ifndef EOVERFLOW
#error "EOVERFLOW is not defined"
#endif
triggers the #error during compilation, you can be pretty sure
that your system doesn't define EOVERFLOW -- though there *might*
be a way to change the compiler's mode so it does some magic to
make it visible.
Already tested that by running the code in the OP of this thread, the
compiler halted at the first instance of EOVERFLOW.
Can you try compiling the above 4-line source file? I'm 90+% sure
you'll get a compiler error message referring to line 3 and containing
the string "EOVERFLOW is not defined".
Actually, a Google search finds numerous references to EOVERFLOW being
missing under MinGW, so make that 99%.
Still if you have a moment, I'd like to make it 100%.
I've searched for that token into all files of the packages, and I found
no (meaningful) occurrence of it. Just once in a comment of an internal
header, but no definition whatsoever (that commented instruction used it
instead of defining it).
If there is any way to force MinGW to magically pull it out from the
compiler binary, that goes beyond my knowledge.
If it were defined, it would probably pull it out of some header file,
not out of the compiler binary.