From 0704682d1943b3033f4762aa0d774218c16ba9b3 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 27 Aug 2022 22:18:40 +0200 Subject: Add C++ compatibility --- lux.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lux.h') diff --git a/lux.h b/lux.h index 9b21450..2ac1637 100644 --- a/lux.h +++ b/lux.h @@ -22,6 +22,10 @@ #define BACKLIGHT_DIR "/sys/class/backlight" +#ifdef __cplusplus +extern "C" { +#endif + struct luxdisp { int __dirfd, __max; FILE *__bstream; @@ -40,4 +44,8 @@ double luxsetp(struct luxdisp *, double); double luxincp(struct luxdisp *, double); double luxdecp(struct luxdisp *, double); +#ifdef __cplusplus +} +#endif + #endif /* !LUX_H */ -- cgit v1.2.3