Stupid gcc always includes its own builtin strlen()...
This commit is contained in:
parent
4c9b68f0e0
commit
db7d5fca5f
@ -293,4 +293,8 @@ int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name);
|
||||
void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name);
|
||||
void reset_ino_dev_hashtable(void);
|
||||
|
||||
/* Stupid gcc always includes its own builtin strlen()... */
|
||||
extern size_t xstrlen(const char *string);
|
||||
#define strlen(x) xstrlen(x)
|
||||
|
||||
#endif /* __LIBCONFIG_H__ */
|
||||
|
@ -85,6 +85,12 @@ FILE *xfopen(const char *path, const char *mode)
|
||||
return fp;
|
||||
}
|
||||
|
||||
/* Stupid gcc always includes its own builtin strlen()... */
|
||||
size_t xstrlen(const char *string)
|
||||
{
|
||||
return(strlen(string));
|
||||
}
|
||||
|
||||
/* END CODE */
|
||||
/*
|
||||
Local Variables:
|
||||
|
Loading…
x
Reference in New Issue
Block a user