1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-17 17:08:39 +00:00

Remove excessive includes from porting.h

This commit is contained in:
sfan5 2024-01-11 10:37:13 +01:00
parent e824e9023f
commit 1ba26d67bd
16 changed files with 26 additions and 11 deletions

View file

@ -255,7 +255,7 @@ std::string writeFlagString(u32 flags, const FlagDesc *flagdesc, u32 flagmask)
return result;
}
size_t mystrlcpy(char *dst, const char *src, size_t size)
size_t mystrlcpy(char *dst, const char *src, size_t size) noexcept
{
size_t srclen = strlen(src) + 1;
size_t copylen = MYMIN(srclen, size);
@ -268,7 +268,7 @@ size_t mystrlcpy(char *dst, const char *src, size_t size)
return srclen;
}
char *mystrtok_r(char *s, const char *sep, char **lasts)
char *mystrtok_r(char *s, const char *sep, char **lasts) noexcept
{
char *t;