Skip to content

Commit 33baa69

Browse files
Ramsay Jonesgitster
authored andcommitted
git-compat-util.h: remove redundant code
Since commit 3a0a3a8 ("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 41b2001 ("Fix an "implicit function definition" warning", 03-03-2007). Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3a0a3a8 commit 33baa69

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

git-compat-util.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,10 @@
163163
typedef long intptr_t;
164164
typedef unsigned long uintptr_t;
165165
#endif
166-
#if defined(__CYGWIN__)
167-
#undef _XOPEN_SOURCE
168-
#include <grp.h>
169-
#define _XOPEN_SOURCE 600
170-
#else
171166
#undef _ALL_SOURCE /* AIX 5.3L defines a struct list with _ALL_SOURCE. */
172167
#include <grp.h>
173168
#define _ALL_SOURCE 1
174169
#endif
175-
#endif
176170

177171
/* used on Mac OS X */
178172
#ifdef PRECOMPOSE_UNICODE

0 commit comments

Comments
 (0)