From 560d398808a251f8248090572b7a43acd8207cd1 Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Sun, 18 Sep 2016 02:28:54 +0200 Subject: [PATCH] Remove old getopt.h and compat_getopt.h These two files were present because Windows doesn't have the getopt function. With the new getopt library for Windows added, these two files are no longer needed. --- compat_getopt.h | 34 ---------------------------------- windows/include/getopt.h | 34 ---------------------------------- 2 files changed, 68 deletions(-) delete mode 100644 compat_getopt.h delete mode 100644 windows/include/getopt.h diff --git a/compat_getopt.h b/compat_getopt.h deleted file mode 100644 index 02c2a8314..000000000 --- a/compat_getopt.h +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ $Revision$ */ -/* vim:set shiftwidth=4 ts=8: */ - -/************************************************************************* - * Copyright (c) 2011 AT&T Intellectual Property - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: See CVS logs. Details at http://www.graphviz.org/ - *************************************************************************/ - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef GETOPT_H -#define GETOPT_H - -/* On most systems, these are defined in unistd.h or stdlib.h, - * but some systems have no external definitions (UTS, SunOS 4.1), - * so we provide a declaration if needed. - */ - - extern int getopt(int, char *const *, const char *); - extern char *optarg; - extern int opterr, optind, optopt; - -#endif - -#ifdef __cplusplus -} -#endif diff --git a/windows/include/getopt.h b/windows/include/getopt.h deleted file mode 100644 index 02c2a8314..000000000 --- a/windows/include/getopt.h +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ $Revision$ */ -/* vim:set shiftwidth=4 ts=8: */ - -/************************************************************************* - * Copyright (c) 2011 AT&T Intellectual Property - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: See CVS logs. Details at http://www.graphviz.org/ - *************************************************************************/ - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef GETOPT_H -#define GETOPT_H - -/* On most systems, these are defined in unistd.h or stdlib.h, - * but some systems have no external definitions (UTS, SunOS 4.1), - * so we provide a declaration if needed. - */ - - extern int getopt(int, char *const *, const char *); - extern char *optarg; - extern int opterr, optind, optopt; - -#endif - -#ifdef __cplusplus -} -#endif -- 2.40.0