summaryrefslogtreecommitdiffstats
path: root/kpat/freecell-solver/rand.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpat/freecell-solver/rand.h')
-rw-r--r--kpat/freecell-solver/rand.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/kpat/freecell-solver/rand.h b/kpat/freecell-solver/rand.h
index 0cecfafd..6ee5edfb 100644
--- a/kpat/freecell-solver/rand.h
+++ b/kpat/freecell-solver/rand.h
@@ -6,8 +6,6 @@
extern "C" {
#endif
-#include "inline.h"
-
struct fcs_rand_struct
{
unsigned long seed;
@@ -20,7 +18,7 @@ extern void freecell_solver_rand_free(fcs_rand_t * rand);
extern void freecell_solver_rand_srand(fcs_rand_t * rand, unsigned int seed);
-static GCC_INLINE int freecell_solver_rand_rand15(fcs_rand_t * rand)
+static inline int freecell_solver_rand_rand15(fcs_rand_t * rand)
{
rand->seed = (rand->seed * 214013 + 2531011);
return (rand->seed >> 16) & 0x7fff;
@@ -32,7 +30,7 @@ static GCC_INLINE int freecell_solver_rand_rand15(fcs_rand_t * rand)
* 15-bit ones.
*
* */
-static GCC_INLINE int freecell_solver_rand_get_random_number(fcs_rand_t * rand)
+static inline int freecell_solver_rand_get_random_number(fcs_rand_t * rand)
{
int one, two;
one = freecell_solver_rand_rand15(rand);