mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Fix Windows builds (rand/random API)
This commit is contained in:
parent
79baf356b9
commit
fc90c92a49
5 changed files with 19 additions and 1 deletions
|
|
@ -23,6 +23,8 @@
|
|||
#include <cfloat>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "pbd/failed_constructor.h"
|
||||
#include "pbd/string_convert.h"
|
||||
|
||||
|
|
@ -732,5 +734,5 @@ Gtkmm2ext::set_source_rgb_a (cairo_t *cr, Color color, float alpha)
|
|||
Color
|
||||
Gtkmm2ext::random_color ()
|
||||
{
|
||||
return ((random() % 16777215) << 8 | 0xff);
|
||||
return ((g_random_int() % 16777215) << 8 | 0xff);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue