Skip to content

Commit 9c45e36

Browse files
committed
Use __clang__ as identifying mark of clang insted of USECLANG
1 parent 39dd4fe commit 9c45e36

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

test/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ all: test-double test-float # test-double-system test-float-system
1111

1212
bench: bench-syslibm bench-openlibm
1313

14-
ifeq ($(USECLANG),1)
15-
CPPFLAGS += -DUSECLANG=1
16-
endif
17-
18-
1914
test-double: test-double.c libm-test.c libm-test-ulps.h
2015
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_add_TARGET_$(ARCH)) $(LDFLAGS) $@.c -D__BSD_VISIBLE -I ../include -I../src $(OPENLIBM_LIB) -o $@
2116

test/libm-test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ test_single_exception (const char *test_name,
410410
{
411411
/* Don't perform these checks if we're compiling with clang, because clang
412412
doesn't bother to set floating-point exceptions properly */
413-
#ifndef USECLANG
413+
#ifndef __clang__
414414
#ifndef TEST_INLINE
415415
int ok = 1;
416416
if (exception & exc_flag)
@@ -448,7 +448,7 @@ test_single_exception (const char *test_name,
448448
++noErrors;
449449

450450
#endif
451-
#endif // USECLANG
451+
#endif // __clang__
452452
}
453453

454454

0 commit comments

Comments
 (0)