aboutsummaryrefslogtreecommitdiff
path: root/include/rand.h
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-07-07 07:02:33 +0000
committerStefan Eßer <se@FreeBSD.org>2020-07-07 07:02:33 +0000
commit3960d8924a1a0ba2f0f5e8510e73a10ee20d726b (patch)
tree068fa33f5b47453a5521c0ff1b2b613ff8a3452c /include/rand.h
parent1f958cfad78842ab9a1193471589231e25596cb3 (diff)
downloadsrc-3960d8924a1a0ba2f0f5e8510e73a10ee20d726b.tar.gz
src-3960d8924a1a0ba2f0f5e8510e73a10ee20d726b.zip
Update to release 3.1.1vendor/bc/3.1.1
This release fixes a regression from traditional bc behavior in FreeBSD with regard to "-e quit" being passed on the command line and add Spanish message catalogs.
Notes
Notes: svn path=/vendor/bc/dist/; revision=362984 svn path=/vendor/bc/3.1.1/; revision=362985; tag=vendor/bc/3.1.1
Diffstat (limited to 'include/rand.h')
-rw-r--r--include/rand.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/rand.h b/include/rand.h
index fa17507276fb..3c8aafd62ade 100644
--- a/include/rand.h
+++ b/include/rand.h
@@ -1,9 +1,9 @@
/*
* *****************************************************************************
*
- * Copyright (c) 2018-2019 Gavin D. Howard and contributors.
+ * SPDX-License-Identifier: BSD-2-Clause
*
- * All rights reserved.
+ * Copyright (c) 2018-2019 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -69,14 +69,16 @@
#ifndef BC_RAND_H
#define BC_RAND_H
-#if BC_ENABLE_EXTRA_MATH
-
#include <stdint.h>
#include <inttypes.h>
#include <vector.h>
#include <num.h>
+#if BC_ENABLE_EXTRA_MATH
+
+#if BC_ENABLE_RAND
+
typedef ulong (*BcRandUlong)(void*);
#if BC_LONG_BIT >= 64
@@ -224,6 +226,8 @@ void bc_rand_getRands(BcRNG *r, BcRand *s1, BcRand *s2, BcRand *i1, BcRand *i2);
extern const BcRandState bc_rand_multiplier;
+#endif // BC_ENABLE_RAND
+
#endif // BC_ENABLE_EXTRA_MATH
#endif // BC_RAND_H