Show
Ignore:
Timestamp:
01/28/99 16:36:01 (15 years ago)
Author:
frodo
Message:

Stuff to get rid of the LM_SENSORS define

Until now, all installed include files depended on a #defined variable
LM_SENSORS: if it was defined, other files were included as "somefile.h"
instead of <linux/somefile.h>. This was clearly dangerous, and is fixed
now, by automatically deleting the offending lines from the include file
when it is installed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/include/smbus.h

    r164 r180  
    1818    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
    1919*/ 
     20 
     21/* Important note: */                                           /* TBD */ 
     22/* Lines like these, with the 'TBD' remark (To Be Deleted) */   /* TBD */ 
     23/* WILL BE DELETED when this file is installed. */              /* TBD */ 
     24/* This allows us to get rid of the ugly LM_SENSORS define */   /* TBD */ 
    2025 
    2126#ifndef SENSORS_SMBUS_H 
     
    5762#endif 
    5863 
    59 #ifdef LM_SENSORS 
    60 #include "i2c.h" 
    61 #else 
     64#ifdef LM_SENSORS                                       /* TBD */ 
     65#include "i2c.h"                                        /* TBD */ 
     66#else                                                   /* TBD */ 
    6267#include <linux/i2c.h> 
    63 #endif 
     68#endif                                                  /* TBD */ 
    6469 
    6570/* Declarations, to keep the compiler happy */