From 732718dfec355594c5421455262eacd6fc88bbba Mon Sep 17 00:00:00 2001 From: ddennedy Date: Sat, 13 Oct 2007 05:57:36 +0000 Subject: [PATCH] effectv/utils.*: fix compilation on OS X git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1026 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/effectv/utils.c | 3 +++ src/modules/effectv/utils.h | 4 +++- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/modules/effectv/utils.c b/src/modules/effectv/utils.c index d551844..902d5f1 100644 --- a/src/modules/effectv/utils.c +++ b/src/modules/effectv/utils.c @@ -42,6 +42,9 @@ void HSItoRGB(double H, double S, double I, int *r, int *g, int *b) * generates 1,2,3,0,1,2,3,0... * You should use high-order bits. */ +#ifdef __DARWIN__ +static +#endif unsigned int fastrand_val; unsigned int fastrand(void) diff --git a/src/modules/effectv/utils.h b/src/modules/effectv/utils.h index 284db0f..4461898 100644 --- a/src/modules/effectv/utils.h +++ b/src/modules/effectv/utils.h @@ -23,10 +23,12 @@ typedef uint32_t RGB32; /* utils.c */ void HSItoRGB(double H, double S, double I, int *r, int *g, int *b); +#ifndef __DARWIN__ extern unsigned int fastrand_val; +#define inline_fastrand() (fastrand_val=fastrand_val*1103515245+12345) +#endif unsigned int fastrand(void); void fastsrand(unsigned int); -#define inline_fastrand() (fastrand_val=fastrand_val*1103515245+12345) /* image.c */ int image_set_threshold_y(int threshold); -- 1.7.4.4