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 | |
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')
-rw-r--r-- | test/perf.c | 6 | ||||
-rw-r--r-- | test/test.c | 8 |
2 files changed, 7 insertions, 7 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]+$");); diff --git a/test/test.c b/test/test.c index 062513c..b358211 100644 --- a/test/test.c +++ b/test/test.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 @@ -103,7 +103,7 @@ int test_strings(void) { char *s1, *s2, *s3, *s4; -#ifdef HAVE_REGEX_H +#if HAVE_REGEX_H regex_t *r = NULL; #endif char **slist; @@ -153,7 +153,7 @@ test_strings(void) FREE(s4); TEST_PASS(); -#ifdef HAVE_REGEX_H +#if HAVE_REGEX_H TEST_BEGIN("regexp_match() function"); TEST_FAIL_IF(!regexp_match("One particular string", "part")); TEST_FAIL_IF(regexp_match("Some other strange string", "^[A-Za-z]+$")); @@ -1311,7 +1311,7 @@ test_socket(void) int test_regexp(void) { -#ifdef LIBAST_REGEXP_SUPPORT_PCRE +#if LIBAST_REGEXP_SUPPORT_PCRE { spif_charptr_t regexp_list[] = { "cdefg", |