summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2015-02-23 00:07:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-02-23 02:56:23 (GMT)
commit33baa6983de95da801ba710560740e263f8fc150 (patch)
tree90f5cdc4d2e6271528f00d4b3bda70d675953de1 /git-compat-util.h
parent3a0a3a8972369060a1eff8353b64bf7377714b22 (diff)
downloadgit-33baa6983de95da801ba710560740e263f8fc150.zip
git-33baa6983de95da801ba710560740e263f8fc150.tar.gz
git-33baa6983de95da801ba710560740e263f8fc150.tar.bz2
git-compat-util.h: remove redundant code
Since commit 3a0a3a89 ("git-compat-util.h: don't define _XOPEN_SOURCE on cygwin", 23-11-2014) removed the definition of _XOPEN_SOURCE on cygwin, the code within a pre-processor conditional further down the file became redundant. Remove the redundant code. This effectively reverts commit 41b20017 ("Fix an "implicit function definition" warning", 03-03-2007). Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 0347fe4..2dbb6a7 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -163,16 +163,10 @@
typedef long intptr_t;
typedef unsigned long uintptr_t;
#endif
-#if defined(__CYGWIN__)
-#undef _XOPEN_SOURCE
-#include <grp.h>
-#define _XOPEN_SOURCE 600
-#else
#undef _ALL_SOURCE /* AIX 5.3L defines a struct list with _ALL_SOURCE. */
#include <grp.h>
#define _ALL_SOURCE 1
#endif
-#endif
/* used on Mac OS X */
#ifdef PRECOMPOSE_UNICODE