mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 09:40:10 +00:00
build: Work around duplicated define of APIENTRY
epoxy defines it if windows.h hasn't been included. So include windows.h before epoxy. See also https://github.com/anholt/libepoxy/issues/299
This commit is contained in:
parent
b5f9d98955
commit
591bc5edc0
@ -22,6 +22,11 @@
|
||||
#include "gdkenums.h"
|
||||
#include "gdktypes.h"
|
||||
|
||||
/* epoxy needs this, see https://github.com/anholt/libepoxy/issues/299 */
|
||||
#ifdef GDK_WINDOWING_WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include <epoxy/gl.h>
|
||||
|
||||
#ifdef GDK_RENDERING_VULKAN
|
||||
|
@ -21,6 +21,10 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef DONT_INCLUDE_LIBEPOXY
|
||||
#ifdef GDK_WINDOWING_WIN32
|
||||
/* epoxy needs this, see https://github.com/anholt/libepoxy/issues/299 */
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include <epoxy/gl.h>
|
||||
#include <epoxy/wgl.h>
|
||||
|
||||
|
@ -20,10 +20,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <epoxy/gl.h>
|
||||
#include <graphene.h>
|
||||
#include <gdk/gdk.h>
|
||||
#include <gsk/gsk.h>
|
||||
#ifdef GDK_WINDOWING_WIN32
|
||||
/* epoxy needs this, see https://github.com/anholt/libepoxy/issues/299 */
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include <epoxy/gl.h>
|
||||
#include <graphene.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
@ -1,4 +1,8 @@
|
||||
#include <gtk/gtk.h>
|
||||
#ifdef GDK_WINDOWING_WIN32
|
||||
/* epoxy needs this, see https://github.com/anholt/libepoxy/issues/299 */
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include <epoxy/gl.h>
|
||||
#include "gdk/gdktextureprivate.h"
|
||||
#include "gdk/gdkglcontextprivate.h"
|
||||
|
Loading…
Reference in New Issue
Block a user