[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UNIKRAFT PATCH 03/18] lib/ukalloc: `extern C {` at the beginning of <uk/alloc.h>



`<uk/alloc.h>`: Move the type `struct uk_alloc` declaration into the
C code block.

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
 lib/ukalloc/include/uk/alloc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ukalloc/include/uk/alloc.h b/lib/ukalloc/include/uk/alloc.h
index a4feb3f4..aa28bb02 100644
--- a/lib/ukalloc/include/uk/alloc.h
+++ b/lib/ukalloc/include/uk/alloc.h
@@ -42,12 +42,12 @@
 #include <uk/assert.h>
 #include <uk/essentials.h>
 
-struct uk_alloc;
-
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+struct uk_alloc;
+
 #define uk_zalloc(a, size)  uk_calloc(a, 1, size)
 #define uk_do_zalloc(a, size) uk_do_calloc(a, 1, size)
 
-- 
2.20.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.