Fixed headerfile for compiling with a C-compiler
This commit is contained in:
parent
6ecf868c65
commit
d6ee193ab4
1 changed files with 7 additions and 0 deletions
|
@ -20,8 +20,13 @@
|
||||||
#define WINAPI
|
#define WINAPI
|
||||||
#define TELLSTICK_API
|
#define TELLSTICK_API
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef __cplusplus
|
||||||
|
#define bool char
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
#endif
|
||||||
TELLSTICK_API bool WINAPI devTurnOn(int intDeviceId);
|
TELLSTICK_API bool WINAPI devTurnOn(int intDeviceId);
|
||||||
TELLSTICK_API bool WINAPI devTurnOff(int intDeviceId);
|
TELLSTICK_API bool WINAPI devTurnOff(int intDeviceId);
|
||||||
TELLSTICK_API bool WINAPI devBell(int intDeviceId);
|
TELLSTICK_API bool WINAPI devBell(int intDeviceId);
|
||||||
|
@ -43,7 +48,9 @@ extern "C" {
|
||||||
|
|
||||||
TELLSTICK_API int WINAPI devAddDevice();
|
TELLSTICK_API int WINAPI devAddDevice();
|
||||||
TELLSTICK_API bool WINAPI devRemoveDevice(int intDeviceId);
|
TELLSTICK_API bool WINAPI devRemoveDevice(int intDeviceId);
|
||||||
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define TELLSTICK_TURNON 1
|
#define TELLSTICK_TURNON 1
|
||||||
#define TELLSTICK_TURNOFF 2
|
#define TELLSTICK_TURNOFF 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue