summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2017-04-13 11:06:24 +0000
committerkrasimir <krasimir@chalmers.se>2017-04-13 11:06:24 +0000
commita657e9947bbad98e95c65488003cdca2c8c2c625 (patch)
treebb63542e6cb8e03450f6ec033d2a0141f0c17bb1 /src
parent7963c8536799c6b4cbeab4ebd106d88bf7185977 (diff)
use GU_API_DATA_DECL instead of GU_API_DATA to make the C runtime compile again on MacOS
Diffstat (limited to 'src')
-rw-r--r--src/runtime/c/gu/hash.h6
-rw-r--r--src/runtime/c/gu/string.h4
-rw-r--r--src/runtime/c/gu/variant.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/runtime/c/gu/hash.h b/src/runtime/c/gu/hash.h
index da612f3f4..fb688af01 100644
--- a/src/runtime/c/gu/hash.h
+++ b/src/runtime/c/gu/hash.h
@@ -31,10 +31,10 @@ struct GuHasher {
};
-GU_API_DATA GuHasher gu_int_hasher[1];
+GU_API_DATA_DECL GuHasher gu_int_hasher[1];
-GU_API_DATA GuHasher gu_addr_hasher[1];
+GU_API_DATA_DECL GuHasher gu_addr_hasher[1];
-GU_API_DATA GuHasher gu_word_hasher[1];
+GU_API_DATA_DECL GuHasher gu_word_hasher[1];
#endif // GU_HASH_H_
diff --git a/src/runtime/c/gu/string.h b/src/runtime/c/gu/string.h
index 2bf1aef45..17b932397 100644
--- a/src/runtime/c/gu/string.h
+++ b/src/runtime/c/gu/string.h
@@ -58,9 +58,9 @@ gu_string_is_prefix(GuString s1, GuString s2);
#if defined(GU_FUN_H_) && !defined(GU_STRING_H_FUN_)
#define GU_STRING_H_FUN_
-GU_API_DATA GuEquality gu_string_equality[1];
+GU_API_DATA_DECL GuEquality gu_string_equality[1];
-GU_API_DATA GuOrder gu_string_order[1];
+GU_API_DATA_DECL GuOrder gu_string_order[1];
#endif
#if defined(GU_HASH_H_) && !defined(GU_STRING_H_HASH_)
diff --git a/src/runtime/c/gu/variant.h b/src/runtime/c/gu/variant.h
index 8e7741694..ec057faa4 100644
--- a/src/runtime/c/gu/variant.h
+++ b/src/runtime/c/gu/variant.h
@@ -97,7 +97,7 @@ gu_variant_from_ptr(const void* p)
return (uintptr_t) p;
}
-GU_API_DATA const GuVariant gu_null_variant;
+GU_API_DATA_DECL const GuVariant gu_null_variant;
static inline bool
gu_variant_is_null(GuVariant v) {