best not to bracket include with extern "C"
This commit is contained in:
@@ -12,15 +12,16 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "shareLib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "shareLib.h"
|
||||
|
||||
epicsShareFunc void epicsShareAPI cantProceed(const char *errorMessage);
|
||||
epicsShareFunc void * epicsShareAPI callocMustSucceed(size_t count, size_t size, const char *errorMessage);
|
||||
epicsShareFunc void * epicsShareAPI mallocMustSucceed(size_t size, const char *errorMessage);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
#ifndef assertEPICS
|
||||
#define assertEPICS
|
||||
|
||||
#include "shareLib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "shareLib.h"
|
||||
|
||||
#undef assert
|
||||
|
||||
#ifndef epicsAssertAuthor
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
#ifndef epicsThreadh
|
||||
#define epicsThreadh
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "shareLib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (*EPICSTHREADFUNC)(void *parm);
|
||||
|
||||
static const unsigned epicsThreadPriorityMax = 99;
|
||||
|
||||
Reference in New Issue
Block a user