From ded9f403d70eac2f440aa28b60a159609f21202d Mon Sep 17 00:00:00 2001 From: dwarning Date: Sun, 26 Apr 2009 16:47:50 +0000 Subject: [PATCH] don't need string.h - comes from ngspice.h --- src/main.c | 4 ---- src/misc/mktemp.c | 4 ---- src/misc/string.c | 7 ------- src/tclspice.c | 5 +---- 4 files changed, 1 insertion(+), 19 deletions(-) diff --git a/src/main.c b/src/main.c index 611c53979..74e55d613 100644 --- a/src/main.c +++ b/src/main.c @@ -21,10 +21,6 @@ extern long int random (void); extern void srandom (unsigned int seed); #endif -#ifdef HAVE_STRING_H -#include -#endif /* HAVE_STRING_H */ - #include #include #include diff --git a/src/misc/mktemp.c b/src/misc/mktemp.c index 6aa03b7ae..0c7ae2e2e 100644 --- a/src/misc/mktemp.c +++ b/src/misc/mktemp.c @@ -9,16 +9,12 @@ Copyright 1990 Regents of the University of California. All rights reserved. */ #include "ngspice.h" -#include #include "mktemp.h" #ifdef HAVE_UNISTD_H #include #endif -#ifdef HAVE_STRING_H -#include -#endif #ifndef TEMPFORMAT #define TEMPFORMAT "temp%s%d" diff --git a/src/misc/string.c b/src/misc/string.c index a9bd5b2fe..de450ca0e 100644 --- a/src/misc/string.c +++ b/src/misc/string.c @@ -6,13 +6,6 @@ Copyright 1990 Regents of the University of California. All rights reserved. * String functions */ -#include -#include - -#ifdef HAVE_STRING_H -#include -#endif - #include "ngspice.h" #include "stringutil.h" diff --git a/src/tclspice.c b/src/tclspice.c index 3d1fde276..abc490924 100755 --- a/src/tclspice.c +++ b/src/tclspice.c @@ -27,7 +27,7 @@ /* Header files for C functions */ /**********************************************************************/ -#include +#include "ngspice.h" #include /*Use Tcl threads if on W32 without pthreads*/ @@ -60,9 +60,6 @@ typedef pthread_t threadId_t; /* Copied from main.c in ngspice*/ #include -#ifdef HAVE_STRING_H -#include -#endif /* HAVE_STRING_H */ #if defined(__MINGW32__) #include /* remove type incompatibility with winnt.h*/