Mercurial > projects > qtd
diff d2/qt/QGlobal.d @ 371:12f60887ed15
add elasticnodes example and necessary changes to the library.
author | Eldar Insafutdinov |
---|---|
date | Wed, 07 Jul 2010 22:54:12 +0100 |
parents | 9784459f0750 |
children | 403d98bd47f6 |
line wrap: on
line diff
--- a/d2/qt/QGlobal.d Sun Jul 04 14:17:49 2010 +0100 +++ b/d2/qt/QGlobal.d Wed Jul 07 22:54:12 2010 +0100 @@ -450,9 +450,18 @@ /* Reentrant versions of basic rand() functions for random number generation */ -void qsrand(uint seed); -int qrand(); +private extern(C) int qtd_qrand(); +private extern(C) void qtd_qsrand(uint); +void qsrand(uint seed) +{ + qtd_qsrand(seed); +} + +int qrand() +{ + return qtd_qrand(); +} /* This gives us the possibility to check which modules the user can @@ -549,4 +558,4 @@ } +/ -alias void DArray; \ No newline at end of file +alias void DArray;