OSLibSupport and C++
Tony van der Hoff
OSLib at mk-net.demon.co.uk
Sun Jun 4 15:54:33 BST 2000
On Sun, 4 Jun 2000, at 13:31:08, Alexander Thoukydides
<alex at thouky.co.uk> wrote on the subject "OSLibSupport and C++":
>None of the OSLibSupport header files include the extern "C" directives
>required to allow usage from C++ code.
>
>At the moment it is necessary to use untidy looking code like:
>
> extern "C" {
> #include "event.h"
> }
>
>Would it be possible to have the usual
>
> #ifdef __cplusplus
> extern "C" {
> #endif
>
> // ...
>
> #ifdef __cplusplus
> }
> #endif
>
>lines added to these files in the next release?
That certainly looks like a sensible idea!
--
Tony van der Hoff | Mailto:tony at mk-net.demon.co.uk
| Mailto:avanderhoff at iee.org
Buckinghamshire, England | http:www.mk-net.demon.co.uk
More information about the oslib-user
mailing list