mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-13 02:36:06 -04:00
Removed local definition of round()
Round() is ISO-C 99 so it was missing from math.h once upon a time it is irrelevant now. Besides, round() is not called in current version of gigablast.
This commit is contained in:
@ -481,11 +481,6 @@ inline bool ucIsWordChar(UChar32 c) {
|
||||
// don't allow "> in our input boxes
|
||||
int32_t cleanInput(char *outbuf, int32_t outbufSize, char *inbuf, int32_t inbufLen);
|
||||
|
||||
// not in math.h?
|
||||
inline double round(double x) {
|
||||
return floor(x+0.5);
|
||||
}
|
||||
|
||||
// like strcpy but return the length and always null terminates
|
||||
// dst should be of size maxDstLen + 1
|
||||
inline int32_t setstr ( char *dst,
|
||||
|
Reference in New Issue
Block a user