]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/ukalloc: `extern C {}` at the beginning of <uk/alloc.h>
authorSimon Kuenzer <simon.kuenzer@neclab.eu>
Thu, 12 Nov 2020 15:26:04 +0000 (16:26 +0100)
committerUnikraft <monkey@unikraft.io>
Tue, 22 Jun 2021 13:14:08 +0000 (13:14 +0000)
`<uk/alloc.h>`: Move the type `struct uk_alloc` declaration into the
C code block.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@gmail.com>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #229

lib/ukalloc/include/uk/alloc.h

index a4feb3f4fb86723913456640ee880989ca0fea16..aa28bb02d76616cfb76534b500364efc6e268267 100644 (file)
 #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)