Skip to content

Commit 8e04ef6

Browse files
committed
test-str.c: replace the glibc-specific __GNUC_PREREQ with GNUC_PREREQ
GNUC_PREREQ macro is provided by shim.h and implements the same functionality. Signed-off-by: Alexey Kodanev <[email protected]>
1 parent 7de555d commit 8e04ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-str.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ test_strncpy(void)
931931

932932
memset(s0, 0, sizeof(s0));
933933
memcpy(s0, s, sizeof(s));
934-
#if __GNUC_PREREQ(8, 1)
934+
#if GNUC_PREREQ(8, 1)
935935
# pragma GCC diagnostic push
936936
# pragma GCC diagnostic ignored "-Wstringop-truncation"
937937
#endif
@@ -1033,7 +1033,7 @@ test_strncpy(void)
10331033
assert_equal_return(s1[16], '\000', -1, "got %#02hhx expected %02hhx\n");
10341034
assert_equal_return(s1[17], '0', -1, "got %#02hhx expected %02hhx\n");
10351035
assert_equal_return(s1[18], '1', -1, "got %#02hhx expected %02hhx\n");
1036-
#if __GNUC_PREREQ(8, 1)
1036+
#if GNUC_PREREQ(8, 1)
10371037
# pragma GCC diagnostic pop
10381038
#endif
10391039
return 0;

0 commit comments

Comments
 (0)