From ee8c4009f9cc15dae0ca1efb7ee4272b8e118f68 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 24 May 2012 19:23:49 +0400 Subject: [PATCH] implib works --- c/GLib_bcb/mylib/mylib.c | 2 +- c/GLib_bcb/mylib/mylib.h | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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); +}