solved build dependency puzzle in regex.c:
* removed superfluous #include <config.h> which was protected by an #ifdef that evaluated to false - so the file never got included, but jam tried to locate it and usually failed, unless there happens to be a config.h in the current working directory. This fixes a spurious dependency from regex.c to the config.h in src/libs/iconv.h if you invoked jam from there. * fixed two warnings by always including stdlib.h git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28639 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -27,10 +27,6 @@
|
|||||||
#undef _GNU_SOURCE
|
#undef _GNU_SOURCE
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
# include <config.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef PARAMS
|
#ifndef PARAMS
|
||||||
# if defined __GNUC__ || (defined __STDC__ && __STDC__)
|
# if defined __GNUC__ || (defined __STDC__ && __STDC__)
|
||||||
# define PARAMS(args) args
|
# define PARAMS(args) args
|
||||||
@@ -143,12 +139,7 @@
|
|||||||
even if config.h says that we can. */
|
even if config.h says that we can. */
|
||||||
# undef REL_ALLOC
|
# undef REL_ALLOC
|
||||||
|
|
||||||
# if defined STDC_HEADERS || defined _LIBC
|
#include <stdlib.h>
|
||||||
# include <stdlib.h>
|
|
||||||
# else
|
|
||||||
char *malloc ();
|
|
||||||
char *realloc ();
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/* When used in Emacs's lib-src, we need to get bzero and bcopy somehow.
|
/* When used in Emacs's lib-src, we need to get bzero and bcopy somehow.
|
||||||
If nothing else has been done, use the method below. */
|
If nothing else has been done, use the method below. */
|
||||||
|
|||||||
Reference in New Issue
Block a user