Skip to content

Commit

Permalink
another little fix for windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
Heinich Saïd PORRO-SUFAN committed Nov 8, 2021
1 parent 6dea1e5 commit dc251db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "robust-predicates"
description = "Robust predicates for computer geometry"
version = "0.1.2"
version = "0.1.3"
authors = ["hporro <[email protected]>"]
edition = "2021"
build = "build.rs"
Expand Down
2 changes: 2 additions & 0 deletions src/predicates.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@
#define NARROWRAND narrowdoublerand
#define UNIFORMRAND uniformdoublerand

#ifdef _MSC_VER
double random(){return rand();}
#endif

/* Which of the following two methods of finding the absolute values is */
/* fastest is compiler-dependent. A few compilers can inline and optimize */
Expand Down

0 comments on commit dc251db

Please sign in to comment.