Skip to content

Commit

Permalink
added support for clang
Browse files Browse the repository at this point in the history
  • Loading branch information
aodinokov committed Jun 23, 2024
1 parent a159ada commit 6ac2a0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ static int _entry_check_base_type(metac_entry_t *p_entry, metac_name_t expected_

assert(p_entry->name != NULL);

// clang doesn't have long complex double -> downgrade to "complex double"
if (strcmp(expected_name, "long complex double") == 0 &&
sizeof(long complex double) == sizeof(complex double)) {
expected_name = "complex double";
}

if (strcmp(p_entry->name, expected_name) == 0 && (
p_entry->base_type_info.encoding == METAC_ENC_undefined ||
p_entry->base_type_info.encoding == expected_encoding) && (
Expand Down

0 comments on commit 6ac2a0e

Please sign in to comment.