delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/18/21:41:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 19 Feb 2004 15:40:42 +1300
From: Philip Lamb <phil AT rave DOT co DOT nz>
Subject: opengl-1.1.0-7 glut.h does not define wchar_t
X-Sender: edennz AT kayan DOT pair DOT com
To: cygwin AT cygwin DOT com
Message-id: <p06020405bc59c9201fd6@[132.181.247.181]>
MIME-version: 1.0
X-IsSubscribed: yes

Hello,

The changes to <GL/glu.h> in w32api-2.5 expose a problem with the 
glut.h in opengl-1.1.0-7 package, file <GL/glut.h>. The problem is 
that whcar_t is now required to be defined by 
/usr/include/w32api/GL/glu.h, however glut.h does not do so.

I'm not sure where the _best_ place to put a definition is; for 
myself I have put it at line 153 of glut.h. Others may wish to do so 
too, and perhaps a patch to the opengl package is in order if other 
more knowledgeable folks concur.

153,156d152
< # ifndef _WCHAR_T_DEFINED
< typedef unsigned short wchar_t;
< #  define _WCHAR_T_DEFINED
< # endif

The only other workaround I can see is adding an #include <windows.h> 
before every #include <GL/glut.h> which is neither elegant nor in the 
spirit of GLUT's philosophy of hiding platform dependencies.
-- 
Philip Lamb
phil AT rave DOT co DOT nz

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019