Added a somewhat less elegant workaround for our use of strncasecmp(), so that smbfs will compile for OS4 again.

This commit is contained in:
Olaf Barthel
2020-01-13 13:31:26 +01:00
parent 140ce82208
commit 39f1cc8a10
+9
View File
@@ -178,6 +178,15 @@ extern APTR allocate_cleared_memory(LONG count, LONG record_size);
/****************************************************************************/
/* This is a less than elegant workaround for our local strncasecmp()
* function which the smbfs code which "parse-smb-url.c" uses.
*/
#ifdef strncasecmp
#undef strncasecmp
#endif /* strncasecmp */
#define strncasecmp _strncasecmp
extern LONG strncasecmp(const char *a, const char *b, LONG n);
/****************************************************************************/