qtgl: Handle OPENGL header guard changes
authorEdward Hervey <edward@centricular.com>
Mon, 17 Dec 2018 08:33:39 +0000 (09:33 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 17 Dec 2018 09:51:50 +0000 (10:51 +0100)
commit3d708a5bfa8961cc37671bc3226976dfc9ba50ad
treed51a1b63822d41b19ac869f7f9252813d385eae4
parent4f7ef56c53175d8768c7713c3e7aeacb4541722e
qtgl: Handle OPENGL header guard changes

In 2018 khronos changed the gl header guards. If we don't detect
this properly we would end up with plenty of symbol redifinition
(since we would be importing twice the "same" header).

Instead detect if the "newer" header was already included and if
so define the "old" define to avoid this situation

Fixes #523
ext/qt/gstqtgl.h