diff options
author | Thomas Haller <thaller@redhat.com> | 2014-12-17 10:38:46 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-12-18 17:36:57 +0100 |
commit | 422fbf48b94d51d0a874e29b4f82726b1bca0c92 (patch) | |
tree | 80fcde8ec8fa310c29f88e85eee1b311e5462384 /include | |
parent | e62aa4165f79a1b42a3c19258284bb945cdaf148 (diff) | |
download | NetworkManager-422fbf48b94d51d0a874e29b4f82726b1bca0c92.tar.gz |
all: move STRLEN() macro to global header nm-utils-internal.h
https://bugzilla.gnome.org/show_bug.cgi?id=741651
Diffstat (limited to 'include')
-rw-r--r-- | include/nm-utils-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/nm-utils-internal.h b/include/nm-utils-internal.h index 69ab8391be..c002b6c1ef 100644 --- a/include/nm-utils-internal.h +++ b/include/nm-utils-internal.h @@ -82,6 +82,9 @@ /********************************************************/ +/* macro to return strlen() of a compile time string. */ +#define STRLEN(str) ( sizeof ("" str) - 1 ) + #define NM_IN_SET(x, y, ...) \ ({ \ const typeof(y) _y = (y); \ |