From ae7f672c066d09e719dcf21d943d2842c7001ebb Mon Sep 17 00:00:00 2001 From: "Torne (Richard Coles)" Date: Tue, 6 May 2014 11:31:42 +0100 Subject: Add {BEGIN,END}_DECLS to header file. Enable this header to be cleanly included in C++ code. Change-Id: Ie4ae60629661237ce07b49b17802f01bf95552d8 --- libpagemap/include/pagemap/pagemap.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libpagemap/include/pagemap/pagemap.h b/libpagemap/include/pagemap/pagemap.h index 22025672..210bc815 100644 --- a/libpagemap/include/pagemap/pagemap.h +++ b/libpagemap/include/pagemap/pagemap.h @@ -19,8 +19,11 @@ #include #include +#include #include +__BEGIN_DECLS + typedef struct pm_memusage pm_memusage_t; /* Holds the various metrics for memory usage of a process or a mapping. */ @@ -198,4 +201,6 @@ int pm_map_usage_flags(pm_map_t *map, pm_memusage_t *usage_out, /* Get the working set of this map alone. */ int pm_map_workingset(pm_map_t *map, pm_memusage_t *ws_out); +__END_DECLS + #endif -- cgit v1.2.3