diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2013-09-06 11:15:02 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2013-09-06 11:31:35 -0300 |
commit | 4c2dc16a2ef46cf139f505379927a68fdb798ce9 (patch) | |
tree | adadb662ce88313e6421b5cb052901c8e247cd97 | |
parent | dc8ed09f8f21d17ef9481001683d7edfdb308983 (diff) | |
download | kmod-4c2dc16a2ef46cf139f505379927a68fdb798ce9.tar.gz |
build: remove check for typeof
It's used in so many places without checking, that's really pointless to
check for it in macro.h.
Also remove AC_C_TYPEOF from configure.ac since we don't use -ansi.
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | libkmod/macro.h | 6 |
2 files changed, 0 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index a192c81..e7416f6 100644 --- a/configure.ac +++ b/configure.ac @@ -28,7 +28,6 @@ AS_IF([test "x$enable_static" = "xyes"], AC_PROG_CC AC_PROG_CC_C99 -AC_C_TYPEOF AM_PROG_CC_C_O AC_PROG_GCC_TRADITIONAL AC_C_BIGENDIAN diff --git a/libkmod/macro.h b/libkmod/macro.h index 10392a3..7969072 100644 --- a/libkmod/macro.h +++ b/libkmod/macro.h @@ -29,14 +29,8 @@ do { (void) sizeof(char [1 - 2*!(expr)]); } while(0) #endif -#if HAVE_TYPEOF #define check_types_match(expr1, expr2) \ ((typeof(expr1) *)0 != (typeof(expr2) *)0) -#else -/* Without typeof, we can only test the sizes. */ -#define check_types_match(expr1, expr2) \ - assert_cc(sizeof(expr1) == sizeof(expr2)) -#endif /* HAVE_TYPEOF */ #define container_of(member_ptr, containing_type, member) \ ((containing_type *) \ |