diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/cbasetypes.h | 4 | ||||
-rw-r--r-- | src/common/strlib.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h index ae6430a62..00296588e 100644 --- a/src/common/cbasetypes.h +++ b/src/common/cbasetypes.h @@ -136,9 +136,8 @@ typedef unsigned long int ppuint32; ////////////////////////////////////////////////////////////////////////// // integer with exact processor width (and best speed) -// size_t already defined in stdio.h ////////////////////////////// -#include <string.h>// size_t +#include <stddef.h> // size_t #if defined(WIN32) && !defined(MINGW) // does not have a signed size_t ////////////////////////////// @@ -308,5 +307,4 @@ typedef char bool; #define TOLOWER(c) (tolower((unsigned char)(c))) #define TOUPPER(c) (toupper((unsigned char)(c))) - #endif /* _CBASETYPES_H_ */ diff --git a/src/common/strlib.h b/src/common/strlib.h index 5abd07e90..a3753b918 100644 --- a/src/common/strlib.h +++ b/src/common/strlib.h @@ -4,6 +4,8 @@ #ifndef _STRLIB_H_ #define _STRLIB_H_ +#include <stddef.h> // size_t + char* jstrescape (char* pt); char* jstrescapecpy (char* pt, const char* spt); int jmemescapecpy (char* pt, const char* spt, int size); @@ -26,5 +28,4 @@ size_t strnlen (const char* string, size_t maxlen); int e_mail_check(char* email); int config_switch(const char* str); - #endif /* _STRLIB_H_ */ |