From 4c298525903f844eee95ecbcdc45f5ac034fa148 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 8 Oct 2015 16:42:14 +0200 Subject: common: Allow building of mkdir_p.c for Windows. * common/mkdir_p.c: Change license and comment debug statements. (amkdir_p, mkdir_p): Fail on malloc error and use default_errsource to build an error code. Change return value to gpg_error_t. (amkdir_p): Use gnupg_mkdir. * common/membuf.c: Include util.h first to avoid redefined macro warnings. Signed-off-by: Werner Koch --- common/membuf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'common/membuf.c') diff --git a/common/membuf.c b/common/membuf.c index cc7772f29..f4430a972 100644 --- a/common/membuf.c +++ b/common/membuf.c @@ -33,9 +33,8 @@ #include #include -#include "membuf.h" - #include "util.h" +#include "membuf.h" /* A simple implementation of a dynamic buffer. Use init_membuf() to -- cgit v1.2.3