Skip to content

Commit c9646f2

Browse files
Merge pull request #5 from eemikula/master
Compilation improvements See tuomasjjrasanen/libsuinput#5
2 parents a9c1184 + e1990dc commit c9646f2

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AM_CPPFLAGS = -Wall -Werror -Wextra -pedantic -std=gnu99
22
lib_LTLIBRARIES = libsuinput.la
33
libsuinput_la_SOURCES = suinput.c
4-
libsuinput_la_LDFLAGS = -l:libudev.so.0 -version-info 5:0:1
4+
libsuinput_la_LDFLAGS = -l:libudev.so -version-info 5:0:1
55
include_HEADERS = suinput.h
66
noinst_HEADERS = libudev.h
77
pkgconfigdir = $(libdir)/pkgconfig

src/suinput.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323

2424
#include <linux/uinput.h>
2525

26+
#ifdef __cplusplus
27+
extern "C" {
28+
#endif
29+
30+
2631
int suinput_open(void);
2732

2833
int suinput_enable_event(int uinput_fd, uint16_t ev_type, uint16_t ev_code);
@@ -42,4 +47,9 @@ int suinput_syn(int uinput_fd);
4247

4348
int suinput_destroy(int uinput_fd);
4449

50+
#ifdef __cplusplus
51+
}
52+
#endif
53+
54+
4555
#endif /* SUINPUT_H */

0 commit comments

Comments
 (0)