remove [X]CLOCKS_PER_SEC

This commit is contained in:
Steffen Jaeckel 2017-02-23 23:37:53 +01:00 committed by Karel Miko
parent 979e9a9d15
commit ecb2402ba8
2 changed files with 1 additions and 9 deletions

View File

@ -34,9 +34,6 @@
#ifndef XCLOCK
#define XCLOCK clock
#endif
#ifndef XCLOCKS_PER_SEC
#define XCLOCKS_PER_SEC CLOCKS_PER_SEC
#endif
#ifndef XQSORT
#define XQSORT qsort

View File

@ -54,8 +54,7 @@ static unsigned long rng_nix(unsigned char *buf, unsigned long len,
#endif /* LTC_DEVRANDOM */
/* on ANSI C platforms with 100 < CLOCKS_PER_SEC < 10000 */
#if defined(CLOCKS_PER_SEC) && !defined(_WIN32_WCE)
#if !defined(_WIN32_WCE)
#define ANSI_RNG
@ -65,10 +64,6 @@ static unsigned long rng_ansic(unsigned char *buf, unsigned long len,
clock_t t1;
int l, acc, bits, a, b;
if (XCLOCKS_PER_SEC < 100 || XCLOCKS_PER_SEC > 10000) {
return 0;
}
l = len;
bits = 8;
acc = a = b = 0;