diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-02-05 14:31:01 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-02-05 14:34:15 +0100 |
commit | 24f3024f36ca44ca8bb32e1a80a048ac4301eaf7 (patch) | |
tree | 23f822b77f6bead622aa41ba201772c034ee164f /src/util.h | |
parent | 1e6f0ac4360bae25ef0a9618c9b091192b8e8997 (diff) | |
download | libgit2-24f3024f36ca44ca8bb32e1a80a048ac4301eaf7.tar.gz |
Split p_strlen into its own header
We need this from util.h and posix.h, but the latter includes common.h
which includes util.h, which means p_strlen is not defined by the time
we get to git__strndup().
Split the definition on p_strlen() off into its own header so we can use
it in util.h.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h index c18221f49..e378786d9 100644 --- a/src/util.h +++ b/src/util.h @@ -7,8 +7,8 @@ #ifndef INCLUDE_util_h__ #define INCLUDE_util_h__ -#include "posix.h" #include "common.h" +#include "strnlen.h" #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) #define bitsizeof(x) (CHAR_BIT * sizeof(x)) |