[gmpi] Re: calling C from C++

  • From: Jeff McClintock <jeffmcc@xxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Mon, 14 Feb 2005 13:21:49 +1300

> int extern "C" somefunction();
>
> is that standard C?

I'll answer my own question..
No. That is not C.  It's now MACRO_ISED..

#ifdef __cplusplus
#   define EXTERN_C extern "C"
#else
#  define EXTERN_C
#endif

int EXTERN_C somefunction();



----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: