mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
use GU_API_DATA_DECL instead of GU_API_DATA to make the C runtime compile again on MacOS
This commit is contained in:
@@ -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_
|
#endif // GU_HASH_H_
|
||||||
|
|||||||
@@ -58,9 +58,9 @@ gu_string_is_prefix(GuString s1, GuString s2);
|
|||||||
|
|
||||||
#if defined(GU_FUN_H_) && !defined(GU_STRING_H_FUN_)
|
#if defined(GU_FUN_H_) && !defined(GU_STRING_H_FUN_)
|
||||||
#define 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
|
#endif
|
||||||
|
|
||||||
#if defined(GU_HASH_H_) && !defined(GU_STRING_H_HASH_)
|
#if defined(GU_HASH_H_) && !defined(GU_STRING_H_HASH_)
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ gu_variant_from_ptr(const void* p)
|
|||||||
return (uintptr_t) 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
|
static inline bool
|
||||||
gu_variant_is_null(GuVariant v) {
|
gu_variant_is_null(GuVariant v) {
|
||||||
|
|||||||
Reference in New Issue
Block a user