delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/10/18:12:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 10 Apr 2001 11:41:40 -0600 (MDT)
From: Roger Sayle <roger AT metaphorics DOT com>
X-Sender: roger AT daylight DOT daylight DOT com
To: Earnie Boyd <earnie_boyd AT yahoo DOT com>, Andre Bleau <bleau AT igb DOT umontreal DOT ca>
cc: Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: GL/gl.h in w32api
Message-ID: <Pine.SOL.4.20.0104101114001.17192-100000@daylight.daylight.com>
MIME-Version: 1.0

My apologies for what may be a frequently asked question, but my
searches of the cygwin and mingw mailing lists have failed to find
an appropriate answer.

Is there any reason why the include files in the opengl package
shouldn't be moved to the w32api package?

Currently, opengl-1.1.0-3 installs these header files in /usr/include/GL
which causes numerous problems when compiling with -mno-cygwin as
discussed in recent mailings to the cygwin mailing list.  These posts
suggest fragile work arounds such as "-I/usr/include" and modifications
to the header files themselves and/or -D__CYGWIN__.

The appropriate solution is to recognize that the OpenGL header files
should simply be part of the w32api, but are missing from the lastest 
w32api-0.5 snapshots.

Moving these files over, would mean that the header files and import
libraries (i.e. opengl32.a) would be distributed at the same time, the
headers would appear in /usr/include/w32api and be found when compiling
both with and without -mno-cygwin, and would greatly simplify the tests
defining the APIENTRY macro, as this header would always refer to the
opengl32.dll implementation.

#if defined(__CYGWIN__) || defined(_WIN32) && defined(__GNUC__)
    || (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED)

This simplification would also free up the /usr/include/GL/gl.h for use
by the X11 client variants of the OpenGL headers.


My apologies once again if this idea has been rejected previously.

Roger
--
Roger Sayle,                         E-mail: roger AT metaphorics DOT com
Bioinformatics Group, Metaphorics,   WWW: http://www.metaphorics.com/
Office 104, 441 Greg Avenue,         Tel: (+1) 505-954-3281
Santa Fe, New Mexico, 87501.         Fax: (+1) 505-989-1200


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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