From d9d47bd8232e21e657131bb1f4c7e232a8c3db36 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 30 Jun 2018 21:19:51 +0200 Subject: [PATCH] fix a bug: missing #ifdef XSPICE prevents compiling of ngshared without --enable-xspice in ./configure --- src/sharedspice.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sharedspice.c b/src/sharedspice.c index 5e1ce4996..41df8e4a8 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -235,8 +235,10 @@ static bool immediate = FALSE; static bool coquit = FALSE; static jmp_buf errbufm, errbufc; static int intermj = 1; +#ifdef XSPICE static SendInitEvtData* sendinitevt; static SendEvtData* sendevt; +#endif 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) { if(wantevtdata) @@ -1991,4 +1994,4 @@ void shared_send_dict(int index, int no_of_nodes, char* name, char*type) if (sendinitevt) sendinitevt(index, no_of_nodes, name, type, ng_ident, euserptr); } - +#endif