[gjs] coverage: Don't mangle internal coverage symbols



commit 8f94e967662bb5004ae5d9b5804bf7e4bb958c4c
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Jan 23 11:40:13 2016 -0800

    coverage: Don't mangle internal coverage symbols
    
    These symbols need to be referenced when linking to the coverage test
    program, so surround them with G_BEGIN_DECLS/G_END_DECLS so that they
    don't get mangled.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761072

 gjs/coverage-internal.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gjs/coverage-internal.h b/gjs/coverage-internal.h
index 19c9316..8533642 100644
--- a/gjs/coverage-internal.h
+++ b/gjs/coverage-internal.h
@@ -28,6 +28,8 @@
 #include "jsapi-util.h"
 #include "coverage.h"
 
+G_BEGIN_DECLS
+
 GArray * gjs_fetch_statistics_from_js(GjsCoverage *coverage,
                                       char        **covered_paths);
 GBytes * gjs_serialize_statistics(GjsCoverage *coverage);
@@ -50,4 +52,6 @@ gboolean gjs_write_cache_to_path(const char *path,
 
 extern const char *GJS_COVERAGE_CACHE_FILE_NAME;
 
+G_END_DECLS
+
 #endif


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