Commit 301e2c4173f2d8bc8f02fd8a136896e237b0a037

Steffen Jaeckel 2020-09-13T14:59:39

Partially revert "enable building dll's using makefile.msvc" This partially reverts commit b206dde88e4affae07970782498afe9e3664ae30.

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);