We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c5bc5f commit 8654599Copy full SHA for 8654599
wolfssl/wolfcrypt/random.h
@@ -248,7 +248,12 @@ WOLFSSL_API int wc_FreeRng(WC_RNG* rng);
248
/* some older compilers do not like macro function in expression */
249
#define wc_RNG_GenerateBlock(rng, b, s) NOT_COMPILED_IN
250
#else
251
-#define wc_RNG_GenerateBlock(rng, b, s) ({(void)rng; (void)b; (void)s; NOT_COMPILED_IN;})
+#ifdef _MSC_VER
252
+#define wc_RNG_GenerateBlock(rng, b, s) (int)(NOT_COMPILED_IN)
253
+#else
254
+#define wc_RNG_GenerateBlock(rng, b, s) \
255
+ ({(void)rng; (void)b; (void)s; NOT_COMPILED_IN;})
256
+#endif
257
#endif
258
#define wc_RNG_GenerateByte(rng, b) NOT_COMPILED_IN
259
#define wc_FreeRng(rng) (void)NOT_COMPILED_IN
0 commit comments