From c47148e63d6a3642d031e997fab805a05bdcc73a Mon Sep 17 00:00:00 2001 From: espes Date: Sun, 12 Jul 2015 01:37:22 +1000 Subject: [PATCH] the simple changes that might fix linux --- gl/glextensions.c | 25 ++++++++++++++++++++++++- gl/glextensions.h | 20 ++++++++++++++++++++ gl/gloffscreen.h | 1 + 3 files changed, 45 insertions(+), 1 deletion(-) diff --git a/gl/glextensions.c b/gl/glextensions.c index 361a0cff23..a7c9b7a667 100644 --- a/gl/glextensions.c +++ b/gl/glextensions.c @@ -1,9 +1,32 @@ +/* + * QEMU OpenGL extensions + * + * Copyright (c) 2015 espes + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 or + * (at your option) version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ #include "gloffscreen.h" #include "glextensions.h" +#ifdef __APPLE__ void (*glFrameTerminatorGREMEDY)(void); +#endif void glextensions_init(void) { - glFrameTerminatorGREMEDY = glo_get_extension_proc("glFrameTerminatorGREMEDY"); +#ifdef __APPLE__ + glFrameTerminatorGREMEDY = + glo_get_extension_proc("glFrameTerminatorGREMEDY"); +#endif } diff --git a/gl/glextensions.h b/gl/glextensions.h index 33adc25960..b10c184130 100644 --- a/gl/glextensions.h +++ b/gl/glextensions.h @@ -1,7 +1,27 @@ +/* + * QEMU OpenGL extensions + * + * Copyright (c) 2015 espes + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 or + * (at your option) version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ #ifndef GLEXTEENSIONS_H_ #define GLEXTEENSIONS_H_ +#ifdef __APPLE__ extern void (*glFrameTerminatorGREMEDY)(void); +#endif void glextensions_init(void); diff --git a/gl/gloffscreen.h b/gl/gloffscreen.h index aed53d5e36..e16407c6a3 100644 --- a/gl/gloffscreen.h +++ b/gl/gloffscreen.h @@ -39,6 +39,7 @@ #include #include #else +#include #include #endif