Roy Vegard Ovesen wrote:

> On Fri, 27 Feb 2004 09:39:14 +0100, Roy Vegard Ovesen 
> wrote:
> 
> I should mention that I am using Cygwin.
> 
> > I get this error when building SimGear:
> >
> >
> > if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../simgear -I../../../.. 
> > -pipe -O2 -Wall -DWIN32 -DNOMINMAX -D_REENTRANT -MT glut_shapes.o -MD 
...

The code bellow is a dirty hack and not the solution :

$ cvs -z3 -q diff -u glut_shapes.c
Index: glut_shapes.c
===================================================================
RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/scene/sky/clouds3d/glut_shapes.c,v
retrieving revision 1.1
diff -u -r1.1 glut_shapes.c
--- a/glut_shapes.c     11 Aug 2003 21:14:48 -0000      1.1
+++ b/glut_shapes.c     27 Feb 2004 09:37:24 -0000
@@ -49,9 +49,9 @@
 #endif


-#ifdef HAVE_WINDOWS_H
+//#ifdef HAVE_WINDOWS_H
 #  include <windows.h>
-#endif
+//#endif


 #include <math.h>
==END==================================================================================

A correct solution would be to find out why HAVE_WINDOWS_H is not defined

-Fred


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to