X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Feffectv%2Futils.h;h=44618984383eec0b7b5b74e4fc6be39c1be17860;hb=cbb2f4d4ef7924c05d335768b2e0bfe2da259020;hp=284db0f04c1983f5865dfc7aba3d2111e77f469c;hpb=fb4c972912353a229e357356c8883eba3b9c37d0;p=melted 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);