X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fyarandom.h;h=eb560a2fd04256a614d5cb30c0fde7cdffd6ff14;hp=3a4acbf0b07ddc69be58caa85c2cafe76e833654;hb=6a1da724858673ac40aa13a9612340d8bed8c7b9;hpb=96bdd7cf6ea60c418a76921acaf0e34d6f5be930 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; })