#include <stdio.h>
#include <setjmp.h>
#include <string.h>
-
-#if defined(_MSC_VER)
-#include <malloc.h>
+#include <stdlib.h>
+#if defined(__APPLE__) && defined(__MACH__)
+#include <sys/types.h>
+#include <sys/malloc.h>
#else
-#include <alloc.h>
+#include <malloc.h>
#endif
-
#include "asm.h"
/*)Module assym.c
if (*p1++ != *p2++)
return (0);
#else
- if (ccase[*p1++] != ccase[*p2++])
+ if (ccase[(unsigned char)(*p1++)] != ccase[(unsigned char)(*p2++)])
return (0);
#endif
#if CASE_SENSITIVE
h += *p++;
#else
- h += ccase[*p++];
+ h += ccase[(unsigned char)(*p++)];
#endif
} while (--n);