1
0
forked from GitHub/gf-core

use GU_API_DATA_DECL instead of GU_API_DATA to make the C runtime compile again on MacOS

This commit is contained in:
krasimir
2017-04-13 11:06:24 +00:00
parent 7963c85367
commit a657e9947b
3 changed files with 6 additions and 6 deletions

View File

@@ -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_

View File

@@ -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_)

View File

@@ -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) {