Partially revert "enable building dll's using makefile.msvc" This partially reverts commit b206dde88e4affae07970782498afe9e3664ae30.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
diff --git a/s_mp_rand_platform.c b/s_mp_rand_platform.c
index f4d6812..06b2f1b 100644
--- a/s_mp_rand_platform.c
+++ b/s_mp_rand_platform.c
@@ -14,13 +14,6 @@ static mp_err s_read_arc4random(void *p, size_t n)
arc4random_buf(p, n);
return MP_OKAY;
}
-#else
-static mp_err s_read_arc4random(void *p, size_t n)
-{
- (void)p;
- (void)n;
- return MP_ERR;
-}
#endif
#if defined(_WIN32)
@@ -79,15 +72,6 @@ static mp_err s_read_getrandom(void *p, size_t n)
#endif
#endif
-#ifndef S_READ_GETRANDOM_C
-static mp_err s_read_getrandom(void *p, size_t n)
-{
- (void)p;
- (void)n;
- return MP_ERR;
-}
-#endif
-
/* We assume all platforms besides windows provide "/dev/urandom".
* In case yours doesn't, define MP_NO_DEV_URANDOM at compile-time.
*/
@@ -126,13 +110,6 @@ static mp_err s_read_urandom(void *p, size_t n)
close(fd);
return MP_OKAY;
}
-#else
-static mp_err s_read_urandom(void *p, size_t n)
-{
- (void)p;
- (void)n;
- return MP_ERR;
-}
#endif
mp_err s_read_arc4random(void *p, size_t n);