Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/blenlib/BLI_rand.h1
-rw-r--r--source/blender/blenlib/intern/rand.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_rand.h b/source/blender/blenlib/BLI_rand.h
index 5168d4b9fea..e6b0146cfab 100644
--- a/source/blender/blenlib/BLI_rand.h
+++ b/source/blender/blenlib/BLI_rand.h
@@ -41,6 +41,7 @@
* to BLI_rand functions below.
*/
struct RNG;
+typedef struct RNG RNG;
struct RNG* rng_new (unsigned int seed);
void rng_free (struct RNG* rng);
diff --git a/source/blender/blenlib/intern/rand.c b/source/blender/blenlib/intern/rand.c
index ef048a5dd5e..191d63f9748 100644
--- a/source/blender/blenlib/intern/rand.c
+++ b/source/blender/blenlib/intern/rand.c
@@ -55,9 +55,9 @@ typedef unsigned long long r_uint64;
/***/
-typedef struct RNG {
+struct RNG {
r_uint64 X;
-} RNG;
+};
RNG *rng_new(unsigned int seed)
{