summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/getopt.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-03-06 12:38:16 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-03-06 12:38:16 +0000
commit05e88b695a1d56112eee8b4fa0d57f0a1f738231 (patch)
treef4a5bc11562093b4257280a17f55a404b9f4d1a4 /Build/source/texk/kpathsea/getopt.h
parente71489818a87c5bc99fc792e5b9ee6ec56516ef3 (diff)
Reduce Cygwin compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@33105 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/getopt.h')
-rw-r--r--Build/source/texk/kpathsea/getopt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/getopt.h b/Build/source/texk/kpathsea/getopt.h
index 8acf05fb4fb..e96881d4e6f 100644
--- a/Build/source/texk/kpathsea/getopt.h
+++ b/Build/source/texk/kpathsea/getopt.h
@@ -47,6 +47,9 @@
extern "C" {
#endif
+#if !defined (__GETOPT_H__)
+/* Avoid to redeclare the getopt API. */
+
/* For communication from `getopt' to the caller.
When `getopt' finds an option that takes an argument,
the argument value is returned here.
@@ -78,6 +81,8 @@ extern KPSEDLL int opterr;
extern KPSEDLL int optopt;
+#endif /* !__GETOPT_H__ */
+
#ifndef __need_getopt
/* Describe the long-named options requested by the application.
The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector