+2009-03-27 Sven Panne <sven.panne@aedion.de>
+
+ * progs/demos/smooth_opengl3/smooth_opengl3.c: Make Visual C happy by
+ including stddef.h and explicitly marking some literals as float.
+
2009-03-26 Sven Panne <sven.panne@aedion.de>
* src/freeglut_init.c,src/freeglut_input_devices.c: Unbreak the build:
#include <GL/freeglut.h>
#include <stdlib.h>
#include <stdio.h>
+#include <stddef.h>
#include <string.h>
/* report GL errors, if any, to stderr */
{
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
if (w <= h) {
- loadOrtho2Df (projectionMatrix, 0.0, 30.0, 0.0, 30.0 * (GLfloat) h/(GLfloat) w);
+ loadOrtho2Df (projectionMatrix, 0.0f, 30.0f, 0.0f, 30.0f * (GLfloat) h/(GLfloat) w);
} else {
- loadOrtho2Df (projectionMatrix, 0.0, 30.0 * (GLfloat) w/(GLfloat) h, 0.0, 30.0);
+ loadOrtho2Df (projectionMatrix, 0.0f, 30.0f * (GLfloat) w/(GLfloat) h, 0.0f, 30.0f);
}
checkError ("reshape");
}