From 5159eac29201703da56cce01edfd179673c9fff8 Mon Sep 17 00:00:00 2001 From: dwarning Date: Sat, 3 May 2008 16:05:47 +0000 Subject: [PATCH] srandom has a macro in ngspice.h --- ChangeLog | 4 ++++ src/include/ngspice.h | 2 +- src/main.c | 4 ---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index e1a12ff29..b6bea8109 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-05-03 Dietmar Warning + * src/include/ngspice.h, src/main.c: srandom has a macro in ngspice.h as a + central place - should be sufficient also under windows + 2008-05-01 Holger Vogt * src/frontend/com_hardcopy.c: bug no. 1885979 removed: currentgraph saved and restored after hardcopy. diff --git a/src/include/ngspice.h b/src/include/ngspice.h index 4e10efebb..c08c7c181 100644 --- a/src/include/ngspice.h +++ b/src/include/ngspice.h @@ -129,8 +129,8 @@ struct timeb timebegin; #endif #ifndef HAVE_RANDOM +#define srandom(a) srand(a) #define random rand -#define srandom srand #endif #ifdef HAVE_INDEX diff --git a/src/main.c b/src/main.c index 8ad9b2634..29b8de26a 100644 --- a/src/main.c +++ b/src/main.c @@ -19,10 +19,6 @@ #include #endif /* HAVE_STRING_H */ -#if defined(__MINGW32__) || defined(_MSC_VER) -#define srandom(a) srand(a) /* srandom */ -#endif /* __MINGW32__ */ - #include #include #include