From adb5fc3436b780c5982f0691526eb6c4c5b33605 Mon Sep 17 00:00:00 2001 From: koennecke Date: Wed, 23 Jul 2008 12:15:17 +0000 Subject: [PATCH] Compiles and runs under Mac OS X VS: ---------------------------------------------------------------------- --- arrobj.c | 1 + pardef.c | 1 + polterwrite.c | 4 ++-- tecs/tecs_cli.c | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arrobj.c b/arrobj.c index 88a3960..39dc7cb 100644 --- a/arrobj.c +++ b/arrobj.c @@ -8,6 +8,7 @@ Markus Zolliker, Feb 2006 */ #include +#include #include "sics.h" #include "splitter.h" #include "pardef.h" diff --git a/pardef.c b/pardef.c index 27445a2..3cf6220 100644 --- a/pardef.c +++ b/pardef.c @@ -12,6 +12,7 @@ Markus Zolliker, March 2005 #include #include #include +#include #include #include "logger.h" #include "pardef.h" diff --git a/polterwrite.c b/polterwrite.c index a2767b8..7cf25da 100644 --- a/polterwrite.c +++ b/polterwrite.c @@ -117,10 +117,10 @@ static void writePolterdiGlobal(NXhandle hfil, NXdict hdict, NXDputalias(hfil,hdict,"estart",pBueffel); SNXSPutVariable(pServ->pSics,pCon,hfil,hdict,"iname","instrument"); - sprintf(pBueffel,"%d",strlen("SINQ, PSI, Switzerland")); + sprintf(pBueffel,"%ld",strlen("SINQ, PSI, Switzerland")); NXDupdate(hdict,"strdim",pBueffel); NXDputalias(hfil,hdict,"sname","SINQ, PSI, Switzerland"); - sprintf(pBueffel,"%d",strlen("continous spallation source")); + sprintf(pBueffel,"%ld",strlen("continous spallation source")); NXDupdate(hdict,"strdim",pBueffel); NXDputalias(hfil,hdict,"stype","continous spallation source"); NXDupdate(hdict,"strdim","132"); diff --git a/tecs/tecs_cli.c b/tecs/tecs_cli.c index 28e0ace..469b404 100644 --- a/tecs/tecs_cli.c +++ b/tecs/tecs_cli.c @@ -1,6 +1,7 @@ #include #include #include +#include #include "myc_mem.h" #include "myc_err.h" #include "myc_str.h"