Skip to content

Commit

Permalink
Fix random definitions on mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed Aug 5, 2024
1 parent cd25055 commit dae2f66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()

project(FFS VERSION 3.1.2)
project(FFS VERSION 3.1.3)

# Some boilerplate to setup nice output directories
include(GNUInstallDirs)
Expand Down
2 changes: 1 addition & 1 deletion fm/fm_formats.c
Original file line number Diff line number Diff line change
Expand Up @@ -3170,7 +3170,7 @@ extern int
unix_timeout_read_func(void *conn, void *buffer, int length,
int *errno_p, char **result_p);

#ifdef _MSC_VER
#ifdef _WIN32
#define srand48(x) srand((int)(x))
#define drand48() ((double)rand()/RAND_MAX)
#define sleep(sec) Sleep(1000 * sec)
Expand Down
2 changes: 1 addition & 1 deletion version.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <stdio.h>

static char *FFS_version = "FFS Version 3.1.2 - Sun Aug 4 18:47:12 EDT 2024\n";
static char *FFS_version = "FFS Version 3.1.3 - Mon Aug 5 14:59:11 EDT 2024\n";

void
FFSprint_version()
Expand Down

0 comments on commit dae2f66

Please sign in to comment.