--- gforth/engine/engine.c 1999/05/12 19:30:30 1.12 +++ gforth/engine/engine.c 2000/07/01 20:48:53 1.19 @@ -38,6 +38,12 @@ #include #include #include +#include +#ifdef HAVE_FNMATCH_H +#include +#else +#include "fnmatch.h" +#endif #else #include "systypes.h" #endif @@ -80,6 +86,11 @@ int emitcounter; #endif #define NULLC '\0' +#ifdef MEMCMP_AS_SUBROUTINE +extern int gforth_memcmp(const char * s1, const char * s2, size_t n); +#define memcmp(s1,s2,n) gforth_memcmp(s1,s2,n) +#endif + #ifdef HAS_FILE char *cstr(Char *from, UCell size, int clear) /* return a C-string corresponding to the Forth string ( FROM SIZE ). @@ -132,6 +143,8 @@ char *tilde_cstr(Char *from, UCell size, UCell i; for (i=1; i