summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tiff/tools/tiffgt.c')
-rw-r--r--tiff/tools/tiffgt.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tiff/tools/tiffgt.c b/tiff/tools/tiffgt.c
index 35a23ccf..2f11b0ca 100644
--- a/tiff/tools/tiffgt.c
+++ b/tiff/tools/tiffgt.c
@@ -1,5 +1,3 @@
-/* $Id: tiffgt.c,v 1.15 2015-09-06 20:42:20 bfriesen Exp $ */
-
/*
* Copyright (c) 1988-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
@@ -29,11 +27,16 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#if HAVE_UNISTD_H
#include <unistd.h>
+#endif
#ifdef HAVE_OPENGL_GL_H
# include <OpenGL/gl.h>
#else
+# ifdef _WIN32
+# include <windows.h>
+# endif
# include <GL/gl.h>
#endif
#ifdef HAVE_GLUT_GLUT_H
@@ -46,7 +49,7 @@
#include "tiffiop.h"
#ifndef HAVE_GETOPT
-extern int getopt(int, char**, char*);
+extern int getopt(int argc, char * const argv[], const char *optstring);
#endif
static uint32 width = 0, height = 0; /* window width & height */