aboutsummaryrefslogtreecommitdiff
path: root/lux.h
diff options
context:
space:
mode:
Diffstat (limited to 'lux.h')
-rw-r--r--lux.h8
1 files changed, 8 insertions, 0 deletions
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 */