From e390722de3aa72324d1fb91f3afb290a0629fd1b Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Tue, 9 Aug 2022 11:04:28 +0200 Subject: [PATCH] async: add guard --- include/re_async.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/re_async.h b/include/re_async.h index ee59ee7d7..2c4e6785f 100644 --- a/include/re_async.h +++ b/include/re_async.h @@ -4,6 +4,8 @@ * Copyright (C) 2022 Sebastian Reimers */ +#ifndef RE_H_ASYNC__ +#define RE_H_ASYNC__ struct re_async; typedef int (re_async_work_h)(void *arg); @@ -12,3 +14,5 @@ typedef void (re_async_h)(int err, void *arg); int re_async_alloc(struct re_async **asyncp, uint16_t workers); int re_async(struct re_async *a, re_async_work_h *work, re_async_h *cb, void *arg); + +#endif