From 180a3afd4a3319488606f00d64db52cec8abc286 Mon Sep 17 00:00:00 2001 From: Andrey Kiselev Date: Thu, 23 Jun 2005 11:50:05 +0000 Subject: [PATCH] Use MacOS X OpenGL framework when appropriate. As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=844 --- tools/tiffgt.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tools/tiffgt.c b/tools/tiffgt.c index 4f810669..d6a27e97 100644 --- a/tools/tiffgt.c +++ b/tools/tiffgt.c @@ -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 @@ -31,11 +31,20 @@ #include #include -#include -#include +#if HAVE_APPLE_OPENGL_FRAMEWORK +# include +# include +#else +# include +# include +#endif #include "tiffio.h" +#ifndef HAVE_GETOPT +extern int getopt(int, char**, char*); +#endif + static uint32 width = 0, height = 0; /* window width & height */ static uint32* raster = NULL; /* displayable image */ static TIFFRGBAImage img;