-/* $Id: geartrain.c,v 1.7 2000/11/30 01:44:24 gareth Exp $ */
+/* $Id: geartrain.c,v 1.8 2001/10/04 19:14:26 kschultz Exp $ */
/*
* GearTrain Simulator * Version: 1.00
#include <string.h>
#include <stdio.h>
+#ifndef min
#define min(x, y) ( x < y ? x : y )
+#endif
#ifndef M_PI
#define M_PI 3.14159265
static GLint Frames = 0;
+#ifndef _WIN32
static void
strset (char buf[], char ch)
{
for (i = 0; i < strlen (buf); i++)
buf[i] = ch;
}
+#endif
static void
-/* $Id: isosurf.c,v 1.12 2001/06/04 15:34:31 keithw Exp $ */
+/* $Id: isosurf.c,v 1.13 2001/10/04 19:14:26 kschultz Exp $ */
/*
* Display an isosurface of 3-D wind speed volume.
#include <stdlib.h>
#include <string.h>
#include <math.h>
+#ifdef _WIN32
+#include <windows.h>
+#endif
#define GL_GLEXT_LEGACY
#include "GL/glut.h"