[ion] Fix the C API

Change-Id: Ifbe11515171d7ee919f90fb28d63907c3c4cfd42
This commit is contained in:
Romain Goyet
2017-02-14 11:11:57 +01:00
parent 6e8d9c1a11
commit 6343a84735
3 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
SFLAGS += -Iion/include -DKD_CONFIG_H=1
include ion/src/$(PLATFORM)/Makefile
objs += $(addprefix ion/src/, \
c.o \
)
tests += $(addprefix ion/test/,\
crc32.cpp\
)

View File

@@ -5,10 +5,10 @@
extern "C" {
#endif
void ion_log_print(const char * message) {
void ion_log_print(const char * message);
#ifdef __cplusplus
extern "C" {
}
#endif
#endif

View File

@@ -10,6 +10,7 @@ objs += $(addprefix ion/src/shared/, \
crc32.o \
events.o \
events_from_keyboard.o \
log.o \
power.o \
)