Fix FreeBSD build: stpcpy isn't exists in FreeBSD

This commit is contained in:
Stas Degteff 2006-04-05 17:45:12 +00:00
parent 8ae1a24567
commit ccfde2d1ec

View File

@ -125,7 +125,7 @@ inline char* strskip_wht(char* p) { while(*p and isspace(*p)) p++; return p; }
inline const char* strskip_digits(const char* p) { return p+strspn(p, "0123456789"); }
inline char* strskip_digits(char* p) { return p+strspn(p, "0123456789"); }
#if defined(_MSC_VER) || (defined(__GNUC__) && (defined(__WIN32__) || defined(__SUNOS__))) || defined(__WATCOMC__)
#if defined(_MSC_VER) || (defined(__GNUC__) && (defined(__WIN32__) || defined(__SUNOS__))) || defined(__WATCOMC__) || defined(__FreeBSD__)
inline char * stpcpy(char* dest, const char* src) {
while ((*dest++ = *src++) != NUL) {}
return --dest;