Skip to content

Commit 3497a51

Browse files
jeroenajdavis
authored andcommitted
Windows: define _CRT_RAND_S to enable rand_s()
1 parent 0d1364f commit 3497a51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mongoc/mongoc-util.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifdef _WIN32
18+
#define _CRT_RAND_S
19+
#endif
1720

1821
#include <string.h>
1922

0 commit comments

Comments
 (0)