Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Lhomme <slhomme@videolan.org>2018-09-28 15:30:57 +0300
committerJean-Baptiste Kempf <jb@videolan.org>2018-09-28 19:07:28 +0300
commitd6e9cb0603817437aea15849228255661e19b2b6 (patch)
tree710739100c6d6a435c387e8070135863c97a9641 /include
parentce0f141e2da6bcb23ad999a6cac1ffe6abb27684 (diff)
build: use local getopt for anything system where it's missing
Do not force include the compat folder as it may contain headers that do exist for the compiler. Include the compat headers individually when they are needed and use an explicit path to compat/
Diffstat (limited to 'include')
-rw-r--r--include/compat/getopt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/compat/getopt.h b/include/compat/getopt.h
index 1922a0e..930e002 100644
--- a/include/compat/getopt.h
+++ b/include/compat/getopt.h
@@ -50,8 +50,6 @@ extern int optreset;
* specific block, only when *not* __UNISTD_H_SOURCED__, in which
* to declare the extended API.
*/
-#endif /* !defined(__GETOPT_H__) */
-
#if !defined(__UNISTD_H_SOURCED__) && !defined(__GETOPT_LONG_H__)
#define __GETOPT_LONG_H__
@@ -93,3 +91,5 @@ extern int getopt_long_only(int nargc, char * const *nargv, const char *options,
#endif
#endif /* !defined(__UNISTD_H_SOURCED__) && !defined(__GETOPT_LONG_H__) */
+
+#endif /* !defined(__GETOPT_H__) */