diff --git a/c/GLib_bcb/mylib/mylib.c b/c/GLib_bcb/mylib/mylib.c index 5c26d20..7c1c136 100644 --- a/c/GLib_bcb/mylib/mylib.c +++ b/c/GLib_bcb/mylib/mylib.c @@ -1,6 +1,6 @@ #include -void +void //__cdecl mylib_func (void) { puts ("Hello mylib_func ()! ;-)\n"); diff --git a/c/GLib_bcb/mylib/mylib.h b/c/GLib_bcb/mylib/mylib.h index 3cc7200..0ad5325 100644 --- a/c/GLib_bcb/mylib/mylib.h +++ b/c/GLib_bcb/mylib/mylib.h @@ -1,2 +1,5 @@ -void -mylib_func (void); +extern "C" +{ + void //__cdecl + mylib_func (void); +}