This commit is contained in:
kaetemi 2019-04-28 10:50:45 +08:00
parent 5ddf4ee4d8
commit bd21bfeeb3

View file

@ -318,7 +318,7 @@ inline const char *nlutf8ToTStr(const std::string &str) { return str.c_str(); }
#define utf8ToTStr(str) NLMISC::nlutf8ToTStr(str) #define utf8ToTStr(str) NLMISC::nlutf8ToTStr(str)
#endif #endif
#if (NL_COMP_VC_VERSION > 90) /* VS2008 does not have stdint.h */ #if (NL_COMP_VC_VERSION <= 90) /* VS2008 does not have stdint.h */
float nlroundf(float x) float nlroundf(float x)
{ {
return x >= 0.0f ? floorf(x + 0.5f) : ceilf(x - 0.5f); return x >= 0.0f ? floorf(x + 0.5f) : ceilf(x - 0.5f);