diff options
author | Thomas Voss <thomasvoss@live.com> | 2022-08-27 22:18:40 +0200 |
---|---|---|
committer | Thomas Voss <thomasvoss@live.com> | 2022-08-27 22:18:40 +0200 |
commit | 0704682d1943b3033f4762aa0d774218c16ba9b3 (patch) | |
tree | d64d66e0758b65dc88675e274fbcd7960ee63a9f | |
parent | 5a055fafadbee61260649db3d482dcde798aaac4 (diff) |
Add C++ compatibility
-rw-r--r-- | lux.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 */ |