Applied patch of Chip Salzenberg <chip@valinux.com>:

Better #ifdefs


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@929 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 2000-11-18 11:38:15 +00:00
1 parent 4fe4b3619c
commit 4444c1464a
11 files changed
+21 -21

No files matched your search

+2 -2
View File
@@ -29,11 +29,11 @@
#include <linux/init.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1))
#ifndef init_MUTEX
#define init_MUTEX(s) do { *(s) = MUTEX; } while(0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
#ifndef THIS_MODULE
#define THIS_MODULE NULL
#endif
+2 -2
View File
@@ -63,11 +63,11 @@
#include "sensors.h"
#include <linux/init.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1))
#ifndef init_MUTEX
#define init_MUTEX(s) do { *(s) = MUTEX; } while(0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
#ifndef THIS_MODULE
#define THIS_MODULE NULL
#endif
+2 -2
View File
@@ -29,11 +29,11 @@
#include <linux/init.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1))
#ifndef init_MUTEX
#define init_MUTEX(s) do { *(s) = MUTEX; } while(0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
#ifndef THIS_MODULE
#define THIS_MODULE NULL
#endif
+2 -2
View File
@@ -34,11 +34,11 @@
#include <linux/smp_lock.h>
#endif
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1))
#ifndef init_MUTEX
#define init_MUTEX(s) do { *(s) = MUTEX; } while(0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
#ifndef THIS_MODULE
#define THIS_MODULE NULL
#endif
+2 -2
View File
@@ -28,11 +28,11 @@
#include <linux/init.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1))
#ifndef init_MUTEX
#define init_MUTEX(s) do { *(s) = MUTEX; } while(0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
#ifndef THIS_MODULE
#define THIS_MODULE NULL
#endif
+2 -2
View File
@@ -33,11 +33,11 @@
#include "sensors.h"
#include <linux/init.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1))
#ifndef init_MUTEX
#define init_MUTEX(s) do { *(s) = MUTEX; } while(0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
#ifndef THIS_MODULE
#define THIS_MODULE NULL
#endif
+2 -2
View File
@@ -34,11 +34,11 @@
#include "sensors.h"
#include <linux/init.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1))
#ifndef init_MUTEX
#define init_MUTEX(s) do { *(s) = MUTEX; } while(0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
#ifndef THIS_MODULE
#define THIS_MODULE NULL
#endif
+2 -2
View File
@@ -51,11 +51,11 @@
#include <linux/init.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1))
#ifndef init_MUTEX
#define init_MUTEX(s) do { *(s) = MUTEX; } while(0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
#ifndef THIS_MODULE
#define THIS_MODULE NULL
#endif
+2 -2
View File
@@ -37,11 +37,11 @@
#include <linux/init.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1))
#ifndef init_MUTEX
#define init_MUTEX(s) do { *(s) = MUTEX; } while(0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
#ifndef THIS_MODULE
#define THIS_MODULE NULL
#endif
+2 -2
View File
@@ -47,11 +47,11 @@
#include "sensors.h"
#include <linux/init.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1))
#ifndef init_MUTEX
#define init_MUTEX(s) do { *(s) = MUTEX; } while(0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
#ifndef THIS_MODULE
#define THIS_MODULE NULL
#endif
+1 -1
View File
@@ -41,7 +41,7 @@ extern int cleanup_module(void);
static int sensors_cleanup(void);
#endif /* MODULE */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
#ifndef THIS_MODULE
#define THIS_MODULE NULL
#endif