srandom has a macro in ngspice.h
This commit is contained in:
parent
fde590c95d
commit
5159eac292
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue