Use MacOS X OpenGL framework when appropriate. As per bug

http://bugzilla.remotesensing.org/show_bug.cgi?id=844
This commit is contained in:
Andrey Kiselev 2005-06-23 11:50:05 +00:00
parent aa4f24915e
commit 180a3afd4a

View File

@ -1,4 +1,4 @@
/* $Id: tiffgt.c,v 1.3 2005-02-03 19:46:49 bfriesen Exp $ */ /* $Id: tiffgt.c,v 1.4 2005-06-23 11:50:05 dron Exp $ */
/* /*
* Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1988-1997 Sam Leffler
@ -31,11 +31,20 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <GL/gl.h> #if HAVE_APPLE_OPENGL_FRAMEWORK
#include <GL/glut.h> # include <OpenGL/gl.h>
# include <GLUT/glut.h>
#else
# include <GL/gl.h>
# include <GL/glut.h>
#endif
#include "tiffio.h" #include "tiffio.h"
#ifndef HAVE_GETOPT
extern int getopt(int, char**, char*);
#endif
static uint32 width = 0, height = 0; /* window width & height */ static uint32 width = 0, height = 0; /* window width & height */
static uint32* raster = NULL; /* displayable image */ static uint32* raster = NULL; /* displayable image */
static TIFFRGBAImage img; static TIFFRGBAImage img;