Skip to content

Commit 301e2c4

Browse files
committed
Partially revert "enable building dll's using makefile.msvc"
This partially reverts commit b206dde.
1 parent 646523e commit 301e2c4

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

s_mp_rand_platform.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ static mp_err s_read_arc4random(void *p, size_t n)
1414
arc4random_buf(p, n);
1515
return MP_OKAY;
1616
}
17-
#else
18-
static mp_err s_read_arc4random(void *p, size_t n)
19-
{
20-
(void)p;
21-
(void)n;
22-
return MP_ERR;
23-
}
2417
#endif
2518

2619
#if defined(_WIN32)
@@ -79,15 +72,6 @@ static mp_err s_read_getrandom(void *p, size_t n)
7972
#endif
8073
#endif
8174

82-
#ifndef S_READ_GETRANDOM_C
83-
static mp_err s_read_getrandom(void *p, size_t n)
84-
{
85-
(void)p;
86-
(void)n;
87-
return MP_ERR;
88-
}
89-
#endif
90-
9175
/* We assume all platforms besides windows provide "/dev/urandom".
9276
* In case yours doesn't, define MP_NO_DEV_URANDOM at compile-time.
9377
*/
@@ -126,13 +110,6 @@ static mp_err s_read_urandom(void *p, size_t n)
126110
close(fd);
127111
return MP_OKAY;
128112
}
129-
#else
130-
static mp_err s_read_urandom(void *p, size_t n)
131-
{
132-
(void)p;
133-
(void)n;
134-
return MP_ERR;
135-
}
136113
#endif
137114

138115
mp_err s_read_arc4random(void *p, size_t n);

0 commit comments

Comments
 (0)