summaryrefslogtreecommitdiffstats
path: root/src/util/ralloc.h
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2015-04-02 11:24:26 +0100
committerJose Fonseca <[email protected]>2015-04-13 12:03:26 +0100
commit978753e84368ef3afa9288cbfbee1c85b3ab09d1 (patch)
tree91cc7d020e44e89da1bfb62842444c25e4c39c0e /src/util/ralloc.h
parent85dd46d90cd7d3d6898d28626063563c1aaba369 (diff)
util/ralloc: Fix `extern "C"` usage.
Reviewed-by: Roland Scheidegger <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/util/ralloc.h')
-rw-r--r--src/util/ralloc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/ralloc.h b/src/util/ralloc.h
index 01f102ba244..7587e1190b0 100644
--- a/src/util/ralloc.h
+++ b/src/util/ralloc.h
@@ -46,16 +46,16 @@
#ifndef RALLOC_H
#define RALLOC_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <stddef.h>
#include <stdarg.h>
#include <stdbool.h>
#include "macros.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* \def ralloc(ctx, type)
* Allocate a new object chained off of the given context.