effectv/utils.*: fix compilation on OS X
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sat, 13 Oct 2007 05:57:36 +0000 (05:57 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sat, 13 Oct 2007 05:57:36 +0000 (05:57 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1026 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/effectv/utils.c
src/modules/effectv/utils.h

index d551844..902d5f1 100644 (file)
@@ -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)
index 284db0f..4461898 100644 (file)
@@ -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);