X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fyarandom.h;h=eb560a2fd04256a614d5cb30c0fde7cdffd6ff14;hb=6a1da724858673ac40aa13a9612340d8bed8c7b9;hp=3a4acbf0b07ddc69be58caa85c2cafe76e833654;hpb=2c902d6065f9856adf31e8540a94f1e42e68e905;p=xscreensaver diff --git a/utils/yarandom.h b/utils/yarandom.h index 3a4acbf0..eb560a2f 100644 --- a/utils/yarandom.h +++ b/utils/yarandom.h @@ -47,6 +47,7 @@ extern void ya_rand_init (unsigned int); /* Implement frand using GCC's statement-expression extension. */ # define frand(f) \ + __extension__ \ ({ double tmp = ((((double) random()) * ((double) (f))) / \ ((double) ((unsigned int)~0))); \ tmp < 0 ? (-tmp) : tmp; })