C++ compatibility

This commit is contained in:
Jeff Hill
1997-04-29 06:21:13 +00:00
parent 39c22d2ee0
commit 6fb8477b3a
4 changed files with 48 additions and 12 deletions

View File

@@ -213,9 +213,19 @@ READONLY char *ca_message_text[]
};
#endif
#ifdef __STDC__
#ifdef __STDC__
#define CAERR_USE_FUNC_PROTO
#endif
#ifdef __cplusplus
#ifndef CAERR_USE_FUNC_PROTO
#define CAERR_USE_FUNC_PROTO
#endif
#endif
#ifdef CAERR_USE_FUNC_PROTO
READONLY char * epicsShareAPI ca_message(long ca_status);
#else /* __STDC__ */
#else /* CAERR_USE_FUNC_PROTO */
READONLY char *ca_message();
#endif