diff options
author | Torne (Richard Coles) <torne@google.com> | 2014-05-06 11:31:42 +0100 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2014-05-06 11:31:42 +0100 |
commit | ae7f672c066d09e719dcf21d943d2842c7001ebb (patch) | |
tree | abcbf4b04a8e57e804c50c972da3f6d453dbb446 | |
parent | 79950456925b801273cd93d03145aba8477a9eb4 (diff) | |
download | extras-ae7f672c066d09e719dcf21d943d2842c7001ebb.tar.gz |
Add {BEGIN,END}_DECLS to header file.
Enable this header to be cleanly included in C++ code.
Change-Id: Ie4ae60629661237ce07b49b17802f01bf95552d8
-rw-r--r-- | libpagemap/include/pagemap/pagemap.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <stdint.h> #include <stdio.h> +#include <sys/cdefs.h> #include <sys/types.h> +__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 |