all: move STRLEN() macro to global header nm-utils-internal.h

https://bugzilla.gnome.org/show_bug.cgi?id=741651
This commit is contained in:
Thomas Haller
2014-12-17 10:38:46 +01:00
parent e62aa4165f
commit 422fbf48b9
4 changed files with 5 additions and 3 deletions

View File

@@ -51,9 +51,6 @@ nm_utils_ip6_route_metric_normalize (guint32 metric)
int nm_spawn_process (const char *args);
/* macro to return strlen() of a compile time string. */
#define STRLEN(str) ( sizeof ("" str) - 1 )
/* check if @flags has exactly one flag (@check) set. You should call this
* only with @check being a compile time constant and a power of two. */
#define NM_FLAGS_HAS(flags, check) \