Browse Source

Fix header breakage due to redefining PATH_MAX.

The header builtin.h was, incorrectly, redefining PATH_MAX which
causes a header order dependency in builtin-write-tree.c.  The fix
is to simply include <limits.h> directly to obtain the correct
definition of PATH_MAX.

Signed-off-by: Ramsay Allan Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Ramsay Allan Jones 19 years ago committed by Junio C Hamano
parent
commit
8e76483ce0
  1. 5
      builtin.h

5
builtin.h

@ -2,10 +2,7 @@
#define BUILTIN_H #define BUILTIN_H


#include <stdio.h> #include <stdio.h>

#include <limits.h>
#ifndef PATH_MAX
# define PATH_MAX 4096
#endif


extern const char git_version_string[]; extern const char git_version_string[];



Loading…
Cancel
Save