Define GL_GLEXT_PROTOTYPES in CFLAGS not in random places in the source

This commit is contained in:
Alexander Larsson 2010-03-10 21:26:13 +01:00
parent eccbe9bb1a
commit 0230541af5
9 changed files with 2 additions and 11 deletions

View File

@ -15,8 +15,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define GL_GLEXT_PROTOTYPES
#include "common.h"
#include "canvas.h"
#include "red_pixmap.h"

View File

@ -15,7 +15,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define GL_GLEXT_PROTOTYPES
#include "common.h"
#include "../common/gl_canvas.c"

View File

@ -15,7 +15,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define GL_GLEXT_PROTOTYPES
#include "common.h"
#include "../common/glc.c"

View File

@ -18,7 +18,6 @@
#ifndef _H_PIXELE_SOURSR_P
#define _H_PIXELE_SOURSR_P
#define GL_GLEXT_PROTOTYPES
#include <X11/X.h>
#include <GL/glu.h>
#include <X11/extensions/XShm.h>

View File

@ -15,7 +15,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define GL_GLEXT_PROTOTYPES
#include "common.h"
#include "red_drawable.h"
#include "pixels_source_p.h"

View File

@ -15,8 +15,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glext.h>

View File

@ -15,7 +15,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define GL_GLEXT_PROTOTYPES
#include "common.h"
#include <X11/Xlib.h>
#include <X11/Xresource.h>

View File

@ -18,8 +18,6 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#define GL_GLEXT_PROTOTYPES
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

View File

@ -164,11 +164,13 @@ SPICE_REQUIRES+=" openssl"
have_gl=yes
AC_CHECK_LIB(GL, glBlendFunc, GL_LIBS="$GL_LIBS -lGL", have_gl=no)
AC_CHECK_LIB(GLU, gluSphere, GL_LIBS="$GL_LIBS -lGLU", have_gl=no)
GL_CFLAGS="-DGL_GLEXT_PROTOTYPES"
if test "x$have_gl" = "xno"; then
AC_MSG_ERROR([GL libraries not available])
fi
AC_SUBST(GL_CFLAGS)
AC_SUBST(GL_LIBS)
SPICE_NONPKGCONFIG_LIBS+=" $GL_LIBS"