From eab36c0001e22c0ee66246ae9a0b8018b2325c96 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 12 Aug 2014 12:03:23 +0800 Subject: tests/scanner: Decorate Symbols for Export This updates the test headers and sources to decorate the symbols with the macro that can be used to export the symbols, and include config.h first in the c-sources so that the macro can be defined with the compiler directive to export the symbols. Update the CFLAGS as well so that the header that defines the export decoration macro can be found. https://bugzilla.gnome.org/show_bug.cgi?id=732669 --- tests/scanner/typedefs.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/scanner/typedefs.h') diff --git a/tests/scanner/typedefs.h b/tests/scanner/typedefs.h index 2a5d8beb..7eaa73bb 100644 --- a/tests/scanner/typedefs.h +++ b/tests/scanner/typedefs.h @@ -3,6 +3,8 @@ #include +#include "gitestmacros.h" + /* * Tests for various orderings of typedef struct declarations. */ @@ -40,6 +42,8 @@ typedef struct _TypedefsBoxedWithTypedefBefore TypedefsBoxedWithTypedefBefore; struct _TypedefsBoxedWithTypedefBefore { int value; }; + +_GI_TEST_EXTERN GType typedefs_boxed_with_typedef_before_get_type (void) G_GNUC_CONST; @@ -48,6 +52,8 @@ struct _TypedefsBoxedWithTypedefAfter { int value; }; typedef struct _TypedefsBoxedWithTypedefAfter TypedefsBoxedWithTypedefAfter; + +_GI_TEST_EXTERN GType typedefs_boxed_with_typedef_after_get_type (void) G_GNUC_CONST; @@ -55,6 +61,8 @@ GType typedefs_boxed_with_typedef_after_get_type (void) G_GNUC_CONST; typedef struct _TypedefsBoxedWithTagAndTypedef { int value; } TypedefsBoxedWithTagAndTypedef; + +_GI_TEST_EXTERN GType typedefs_boxed_with_tag_and_typedef_get_type (void) G_GNUC_CONST; @@ -62,11 +70,15 @@ GType typedefs_boxed_with_tag_and_typedef_get_type (void) G_GNUC_CONST; typedef struct { int value; } TypedefsBoxedWithAnonymousTypedef; + +_GI_TEST_EXTERN GType typedefs_boxed_with_anonymous_typedef_get_type (void) G_GNUC_CONST; /* BUG: uses instead of */ typedef struct _TypedefsBoxedWithHiddenStruct TypedefsBoxedWithHiddenStruct; + +_GI_TEST_EXTERN GType typedefs_boxed_with_hidden_struct_get_type (void) G_GNUC_CONST; -- cgit v1.2.1