fix a bug: missing

#ifdef XSPICE
prevents compiling of ngshared
without --enable-xspice in ./configure
This commit is contained in:
Holger Vogt 2018-06-30 21:19:51 +02:00
parent 38ed802ba4
commit d9d47bd823
1 changed files with 4 additions and 1 deletions

View File

@ -235,8 +235,10 @@ static bool immediate = FALSE;
static bool coquit = FALSE; static bool coquit = FALSE;
static jmp_buf errbufm, errbufc; static jmp_buf errbufm, errbufc;
static int intermj = 1; static int intermj = 1;
#ifdef XSPICE
static SendInitEvtData* sendinitevt; static SendInitEvtData* sendinitevt;
static SendEvtData* sendevt; static SendEvtData* sendevt;
#endif
static void* euserptr; static void* euserptr;
@ -1979,6 +1981,7 @@ sharedsync(double *pckttime, double *pcktdelta, double olddelta, double finalt,
} }
} }
#ifdef XSPICE
void shared_send_event(int index, double step, double dvalue, char *svalue, void *pvalue, int plen, int mode) void shared_send_event(int index, double step, double dvalue, char *svalue, void *pvalue, int plen, int mode)
{ {
if(wantevtdata) if(wantevtdata)
@ -1991,4 +1994,4 @@ void shared_send_dict(int index, int no_of_nodes, char* name, char*type)
if (sendinitevt) if (sendinitevt)
sendinitevt(index, no_of_nodes, name, type, ng_ident, euserptr); sendinitevt(index, no_of_nodes, name, type, ng_ident, euserptr);
} }
#endif