#include <windows.h>
#endif
-#include "wx/defs.h"
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+#include "wx/wx.h"
+#endif
#include "lw.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
-#if !defined(__WXMAC__)
-// these must be defined in the precompiled headers under CodeWarrior
-#define wxInt32 int
-#define wxUint32 unsigned int
-#endif
-
#ifndef FALSE
#define FALSE 0
#endif
nbytes -= read_string(f,material->name);
/* defaults */
- material->r = 0.7;
- material->g = 0.7;
- material->b = 0.7;
+ material->r = 0.7f;
+ material->g = 0.7f;
+ material->b = 0.7f;
}
lwo->material = (lwMaterial*) realloc(lwo->material, sizeof(lwMaterial)*lwo->material_cnt);
}