Changes for WIN32 build.
This commit is contained in:
@@ -11,9 +11,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "osiSem.h"
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "osiSem.h"
|
||||
#include "ellLib.h"
|
||||
#include "dbmf.h"
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -23,7 +23,7 @@ chdir $config_dir or die "cannot change dir to $config_dir";
|
||||
$config_dir=cwd();
|
||||
chdir $start_dir;
|
||||
|
||||
$SRC = "../envDefs.h";
|
||||
$SRC = "../../../misc/generic/envDefs.h";
|
||||
$env_data = "${config_dir}/CONFIG_ENV";
|
||||
$site_data= "${config_dir}/CONFIG_SITE_ENV";
|
||||
$out_name = "envData.c";
|
||||
|
||||
@@ -69,11 +69,10 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "cantProceed.h"
|
||||
#include <errno.h>
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "cantProceed.h"
|
||||
#include "dbDefs.h"
|
||||
#include "errMdef.h"
|
||||
#include "errSymTbl.h"
|
||||
|
||||
@@ -57,10 +57,9 @@ DEVELOPMENT CENTER AT ARGONNE NATIONAL LABORATORY (708-252-2000).
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "cantProceed.h"
|
||||
#include "osiSem.h"
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "freeList.h"
|
||||
#include "adjustment.h"
|
||||
|
||||
|
||||
@@ -56,9 +56,9 @@ DEVELOPMENT CENTER AT ARGONNE NATIONAL LABORATORY (708-252-2000).
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "cantProceed.h"
|
||||
#include "osiSem.h"
|
||||
#define epicsExportSharedSymbols
|
||||
#include "dbDefs.h"
|
||||
#include "ellLib.h"
|
||||
#include "epicsPrint.h"
|
||||
|
||||
@@ -14,11 +14,12 @@ of this distribution.
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "errlog.h"
|
||||
#include "cantProceed.h"
|
||||
#include "osiThread.h"
|
||||
|
||||
void *callocMustSucceed(size_t count, size_t size, const char *errorMessage)
|
||||
epicsShareFunc void * epicsShareAPI callocMustSucceed(size_t count, size_t size, const char *errorMessage)
|
||||
{
|
||||
void *mem = calloc(count,size);
|
||||
if(mem==0) {
|
||||
@@ -29,7 +30,7 @@ void *callocMustSucceed(size_t count, size_t size, const char *errorMessage)
|
||||
return(mem);
|
||||
}
|
||||
|
||||
void *mallocMustSucceed(size_t size, const char *errorMessage)
|
||||
epicsShareFunc void * epicsShareAPI mallocMustSucceed(size_t size, const char *errorMessage)
|
||||
{
|
||||
void *mem = malloc(size);
|
||||
if(mem==0) {
|
||||
@@ -40,7 +41,7 @@ void *mallocMustSucceed(size_t size, const char *errorMessage)
|
||||
return(mem);
|
||||
}
|
||||
|
||||
void cantProceed(const char *errorMessage)
|
||||
epicsShareFunc void epicsShareAPI cantProceed(const char *errorMessage)
|
||||
{
|
||||
errlogPrintf("fatal error: %s\n",errorMessage);
|
||||
threadSuspend(threadGetIdSelf());
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void cantProceed(const char *errorMessage);
|
||||
void *callocMustSucceed(size_t count, size_t size, const char *errorMessage);
|
||||
void *mallocMustSucceed(size_t size, const char *errorMessage);
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user