From 76827d7c10c2708a3147171b02bfe3981492a38f Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 4 Mar 2012 08:58:44 +0000 Subject: Create a new CSTRLEN (constant string length) macro, and use it. --- variable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'variable.h') diff --git a/variable.h b/variable.h index 410c355..de841d0 100644 --- a/variable.h +++ b/variable.h @@ -235,4 +235,4 @@ struct pattern_var *create_pattern_var (const char *target, extern int export_all_variables; #define MAKELEVEL_NAME "MAKELEVEL" -#define MAKELEVEL_LENGTH (sizeof (MAKELEVEL_NAME) - 1) +#define MAKELEVEL_LENGTH (CSTRLEN (MAKELEVEL_NAME)) -- cgit v1.2.3