blob: 99778f921f00b19d479086fb6bcbba5f4ab9d7c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-al,v 1.2 2006/12/03 03:09:46 obache Exp $
--- src/lha_macro.h.orig 2000-10-04 23:57:38.000000000 +0900
+++ src/lha_macro.h
@@ -68,7 +68,6 @@ extern char *realloc();
#endif
/* external variables */
-extern int errno;
#define FALSE 0
#define TRUE 1
@@ -324,6 +323,8 @@ typedef short node;
/* Individual macro define */
/* ------------------------------------------------------------------------ */
+#define MIN(a,b) ((a) <= (b) ? (a) : (b))
+
/* from crcio.c */
#define CRCPOLY 0xA001 /* CRC-16 */
#define UPDATE_CRC(c) crc = crctable[(crc ^ (c)) & 0xFF] ^ (crc >> CHAR_BIT)
|