From 7e57aa9ef910d543aef7eae372df8a629e4c9aab Mon Sep 17 00:00:00 2001 From: aldot Date: Fri, 19 May 2006 11:54:02 +0000 Subject: - single KERNEL_VERSION(a,b,c) macro in platform.h - rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day git-svn-id: svn://busybox.net/trunk/busybox@15121 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- include/platform.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/platform.h') diff --git a/include/platform.h b/include/platform.h index 257ddb260..6b3b3f78e 100644 --- a/include/platform.h +++ b/include/platform.h @@ -91,6 +91,13 @@ # include #endif +/*----- Kernel versioning ------------------------------------*/ +#ifdef __linux__ +#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) +#else +#error implement KERNEL_VERSION for your platform +#endif + /* ---- miscellaneous --------------------------------------- */ /* NLS stuff */ /* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ -- cgit v1.2.3-55-g6feb