summaryrefslogtreecommitdiffstats
path: root/kpat/freecell-solver/rand.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-05-11 12:19:42 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-05-11 12:19:42 +0900
commitc1a1b2a176d01fb9db2630a01736c5d39b5b2e68 (patch)
tree74199763708059479d93b53dcf69242ac663abcb /kpat/freecell-solver/rand.h
parent8c0324af159f4e316244585f5299e48704de4c35 (diff)
downloadtdegames-c1a1b2a176d01fb9db2630a01736c5d39b5b2e68.tar.gz
tdegames-c1a1b2a176d01fb9db2630a01736c5d39b5b2e68.zip
Fixed FTBFS on Slackware. This resolves bug 2046.
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);