L4RE: fix x86 syscall bindings to use in C++ namespace

This commit is contained in:
Stefan Kalkowski
2017-05-03 15:01:31 +02:00
parent 8ce1c02d02
commit 266d89b9a5

View File

@@ -48,7 +48,11 @@
#if 1 #if 1
#ifdef __PIC__ #ifdef __PIC__
#ifndef __cplusplus
extern void (*__l4sys_invoke_indirect)(void); extern void (*__l4sys_invoke_indirect)(void);
#else
extern "C" void (*__l4sys_invoke_indirect)(void);
#endif
#endif #endif
# define IPC_SYSENTER "# indirect sys invoke \n\t" \ # define IPC_SYSENTER "# indirect sys invoke \n\t" \
"call *%[func] \n\t" "call *%[func] \n\t"