13 lines
424 B
Text
13 lines
424 B
Text
$NetBSD: patch-tig_h,v 1.1 2011/07/31 22:15:36 dholland Exp $
|
|
|
|
--- tig.h~ 2011-03-07 01:50:11.000000000 +0000
|
|
+++ tig.h
|
|
@@ -68,7 +68,7 @@
|
|
#define MIN(x, y) ((x) < (y) ? (x) : (y))
|
|
#define MAX(x, y) ((x) > (y) ? (x) : (y))
|
|
|
|
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
|
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
|
#define STRING_SIZE(x) (sizeof(x) - 1)
|
|
|
|
#define SIZEOF_STR 1024 /* Default string size. */
|