diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-04-03 23:11:43 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-04-03 23:11:43 +0000 |
commit | acd20a2d8df3068d32381978026c427116a2f8b4 (patch) | |
tree | d7faae76f5dc8738c17cce2ccbec2f9df39c5be6 /lib | |
parent | b19bd437731a20d67007d69e38c284775ae0c71d (diff) | |
download | netpbm-mirror-acd20a2d8df3068d32381978026c427116a2f8b4.tar.gz netpbm-mirror-acd20a2d8df3068d32381978026c427116a2f8b4.tar.xz netpbm-mirror-acd20a2d8df3068d32381978026c427116a2f8b4.zip |
Use 'rand' instead of 'random' on Windows
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4083 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/randsysrandom.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util/randsysrandom.c b/lib/util/randsysrandom.c index 3e38b0ae..f26bb18d 100644 --- a/lib/util/randsysrandom.c +++ b/lib/util/randsysrandom.c @@ -1,9 +1,14 @@ +/* Implementation note: Mingw/Windows does not provide POSIX 'random', so + netpbm/pm_config.h makes that a macro for POSIX 'rand' on that platform +*/ + #define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */ #define _XOPEN_SOURCE 500 /* Make sure random() is in stdlib.h */ #define _BSD_SOURCE /* Make sure random() is in stdlib.h */ #include <stdlib.h> +#include "netpbm/pm_config.h" #include "netpbm/rand.h" static void |