Changeset View
Changeset View
Standalone View
Standalone View
source/lib/posix/posix.h
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
// and not isfinite. C99 specifies that isfinite is a macro, so we can use | // and not isfinite. C99 specifies that isfinite is a macro, so we can use | ||||
// #ifndef and define it if it's not there already. | // #ifndef and define it if it's not there already. | ||||
// We've included <cmath> above to make sure it defines that macro. | // We've included <cmath> above to make sure it defines that macro. | ||||
#ifndef isfinite | #ifndef isfinite | ||||
# if MSC_VERSION | # if MSC_VERSION | ||||
# define isfinite _finite | # define isfinite _finite | ||||
# define isnan _isnan | # define isnan _isnan | ||||
# else | # else | ||||
# define isfinite std::isfinite | //# define isfinite std::isfinite // std::std not declared | ||||
# define isnan std::isnan | # define isnan std::isnan | ||||
# endif | # endif | ||||
#endif | #endif | ||||
#endif // #ifndef INCLUDED_POSIX | #endif // #ifndef INCLUDED_POSIX |
Wildfire Games · Phabricator