/* Hapy is a public domain software. See Hapy README file for the details. */ #ifndef HAPY_NUMERIC_LIMITS__H #define HAPY_NUMERIC_LIMITS__H #include #ifdef HAPY_HAVE_LIMITS # include #elif HAPY_HAVE_CLIMITS # include #elif HAPY_HAVE_LIMITS_H # include #endif #ifndef HAPY_HAVE_NUMERIC_LIMITS namespace std { # ifndef ULONG_MAX # define LONG_MIN INT_MIN # define LONG_MAX INT_MAX # endif template class numeric_limits { public: static T min() { return 0; } static T max() { return 0; } }; signed long numeric_limits::min() { return LONG_MIN; } signed long numeric_limits::max() { return LONG_MAX; } } #endif #endif