]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/sg_random.h
math: Move lerp function into SGMisc.
[simgear.git] / simgear / math / sg_random.h
index 1fed733d3aa5c683d8903177350ab70a0643c126..51fefb65001d71f596af3f62ea1968764fc899c9 100644 (file)
@@ -40,7 +40,7 @@ extern "C" {
  * Structure to hold MT algorithm state to easily allow independant
  * sets of random numbers with different seeds.
  */
-struct {unsigned int array[MT_N]; int index; } typedef mt;
+typedef struct {unsigned int array[MT_N]; int index; } mt;
 
 /**
  * Initialize a new MT state with a given seed.