diff options
author | Michael Jennings <mej@kainx.org> | 2003-11-26 22:19:44 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2003-11-26 22:19:44 +0000 |
commit | f2c26ccca7f118c9fc516253067989b86d1d4946 (patch) | |
tree | f7ca7ecfe8b0526a364eb6c9bb8d4d2ba078c876 /test/perf.c | |
parent | 2e8dffea77411c654207b3f1823c63e68a7abb95 (diff) | |
download | libast-f2c26ccca7f118c9fc516253067989b86d1d4946.tar.gz |
Wed Nov 26 17:18:20 2003 Michael Jennings (mej)
Added sysdefs.h so that client programs who don't employ some/all of
the AST_* m4 macros can still get all the #define's they need for the
auto* stuff.
SVN revision: 7951
Diffstat (limited to 'test/perf.c')
-rw-r--r-- | test/perf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/perf.c b/test/perf.c index e1d1721..59dc2d3 100644 --- a/test/perf.c +++ b/test/perf.c @@ -23,7 +23,7 @@ static const char cvs_ident[] = "$Id$"; -#ifdef HAVE_CONFIG_H +#if defined(HAVE_CONFIG_H) && (HAVE_CONFIG_H != 0) # include <config.h> #endif @@ -88,7 +88,7 @@ int perf_strings(void) { char *s1, *s2, *s3, *s4; -#ifdef HAVE_REGEX_H +#if HAVE_REGEX_H regex_t *r = NULL; #endif char **slist; @@ -118,7 +118,7 @@ perf_strings(void) PERF_SET_REPS(10); -#ifdef HAVE_REGEX_H +#if HAVE_REGEX_H PERF_BEGIN("regexp_match() function"); PERF_TEST(regexp_match("One particular string", "part");); PERF_TEST(regexp_match("Some other strange string", "^[A-Za-z]+$");); |