xintrea / mytetra_dev

MyTetra - smart crossplatform manager for information collecting / MyTetra - кроссплатформенный менеджер накопления информации / Официальная страница:
http://webhamster.ru/site/page/index/articles/projectcode/105
254 stars 55 forks source link

Compile error on glibc-2.38-23 #164

Open pbsds opened 12 months ago

pbsds commented 12 months ago
/usr/include/string.h:380:14: error: conflicting types for 'strcasestr'; have 'char *(const char *, const char *)'
  380 | extern char *strcasestr (const char *__haystack, const char *__needle)
      |              ^~~~~~~~~~
mimetex.c:428:13: note: previous declaration of 'strcasestr' with type 'const char *(const char *, const char *)'
  428 | const char *strcasestr(const char *s1, const char *s2);

Removing the const from const char *strcasestr seems to fix it.