srandom has a macro in ngspice.h

This commit is contained in:
dwarning 2008-05-03 16:05:47 +00:00
parent fde590c95d
commit 5159eac292
3 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -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

View File

@ -19,10 +19,6 @@
#include <string.h>
#endif /* HAVE_STRING_H */
#if defined(__MINGW32__) || defined(_MSC_VER)
#define srandom(a) srand(a) /* srandom */
#endif /* __MINGW32__ */
#include <setjmp.h>
#include <signal.h>
#include <sys/types.h>