Changeset 722

Show
Ignore:
Timestamp:
02/02/00 21:19:59 (9 years ago)
Author:
frodo
Message:

Solved compile problems for g++ programs linked to libsensors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/TODO

    r667 r722  
    99============== 
    1010 
     11* Add string function in sensors.o 
    1112* ALL: cleanup_module is void; check also that cleaning up is done 
    1213  properly, now we know that the module will be unloaded whatever we 
  • lm-sensors/trunk/lib/error.h

    r207 r722  
    3030#define SENSORS_ERR_PARSE 8     /* General parse error */ 
    3131 
     32#ifdef __cplusplus 
     33extern "C" { 
     34#endif /* __cplusplus */ 
     35 
     36 
    3237/* This function returns a pointer to a string which describes the error. 
    3338   errnum may be negative (the corresponding positive error is returned). 
     
    4752extern void (*sensors_fatal_error) (const char *proc, const char *err); 
    4853 
     54#ifdef __cplusplus 
     55} 
     56#endif /* __cplusplus */ 
    4957 
    5058#endif /* def LIB_SENSORS_ERROR_H */ 
  • lm-sensors/trunk/lib/sensors.h

    r676 r722  
    3030#define SENSORS_CHIP_NAME_BUS_ANY_I2C -3 
    3131#define SENSORS_CHIP_NAME_ADDR_ANY -1 
     32 
     33#ifdef __cplusplus 
     34extern "C" { 
     35#endif /* __cplusplus */ 
    3236 
    3337/* A chip name is encoded is in this structure */ 
     
    138142             (sensors_chip_name name, int *nr1,int *nr2); 
    139143 
     144#ifdef __cplusplus 
     145} 
     146#endif /* __cplusplus */ 
     147 
    140148#endif /* def LIB_SENSORS_ERROR_H */