After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 703364 - Misdetected W32
Misdetected W32
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-gl
git master
Other Windows
: Normal normal
: 1.1.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-06-30 21:45 UTC by LRN
Modified: 2013-07-01 08:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
W32 fixes. (2.31 KB, patch)
2013-06-30 21:46 UTC, LRN
committed Details | Review

Description LRN 2013-06-30 21:45:45 UTC
__WIN32__ is only defined by Borland compilers[1], everyone else uses _WIN32.

[1] http://www.mail-archive.com/bug-gnulib@gnu.org/msg05722.html
Comment 1 LRN 2013-06-30 21:46:25 UTC
Created attachment 248107 [details] [review]
W32 fixes.

Also, glext.h needs to be included in the examples too.
Comment 2 Sebastian Dröge (slomo) 2013-07-01 08:23:20 UTC
commit b317a80620fd5155564f57fbe1ceee3c8d9b6d1a
Author: Руслан Ижбулатов <lrn1986@gmail.com>
Date:   Mon Jul 1 01:36:35 2013 +0400

    gl: Fix build on Win32
    
    1) Need to include GL/glext.h on W32 to provide necessary macros
    2) W32 macros that pre-processor has by default are different for different
       toolchains. Borland uses __WIN32__, everyone else has _WIN32, so check bo
    
    Side-note: glext.h is not supplied by mingw-w64 at the moment, but can be
    downloaded from http://www.opengl.org/registry/