Commit 9d81b559 authored by Guido van Rossum's avatar Guido van Rossum

Different logic for defining CHECK(); 16-bit MSC specific define.

parent 845547d5
......@@ -39,11 +39,17 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#undef HUGE_VAL
#endif
#ifdef HUGE_VAL
#if defined(_MSC_VER) && _MSC_VER < 850
#define CHECK(x) /* errno is always set VC++ Ver 1.5*/
#endif
#if defined(HUGE_VAL) && !defined(CHECK)
#define CHECK(x) if (errno != 0) ; \
else if (-HUGE_VAL <= (x) && (x) <= HUGE_VAL) ; \
else errno = ERANGE
#else
#endif
#ifndef CHECK
#define CHECK(x) /* Don't know how to check */
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment