]> granicus.if.org Git - graphviz/commitdiff
Remove old getopt.h and compat_getopt.h
authorErwin Janssen <erwinjanssen@outlook.com>
Sun, 18 Sep 2016 00:28:54 +0000 (02:28 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Sun, 18 Sep 2016 00:28:54 +0000 (02:28 +0200)
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 [deleted file]
windows/include/getopt.h [deleted file]

diff --git a/compat_getopt.h b/compat_getopt.h
deleted file mode 100644 (file)
index 02c2a83..0000000
+++ /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 (file)
index 02c2a83..0000000
+++ /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