Skip to content

Commit 3321e36

Browse files
committed
Add error if not using gcc or clang
1 parent 053c890 commit 3321e36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ void semu_timer_rebase(semu_timer_t *timer, uint64_t time);
1515

1616
/* Linux-like queue API */
1717

18-
#if defined(__GNUC__)
18+
#if defined(__GNUC__) || defined(__clang__)
1919
#define __LIST_HAVE_TYPEOF 1
20+
#else
21+
#error You should use either GCC or Clang for compilation.
2022
#endif
2123

2224
struct list_head {

0 commit comments

Comments
 (0)