From 05e88b695a1d56112eee8b4fa0d57f0a1f738231 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Thu, 6 Mar 2014 12:38:16 +0000 Subject: Reduce Cygwin compiler warnings git-svn-id: svn://tug.org/texlive/trunk@33105 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/getopt.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Build/source/texk/kpathsea/getopt.h') 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 -- cgit v1.2.3