summaryrefslogtreecommitdiff
path: root/src/util/String.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-05-09 15:28:01 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-05-09 15:28:01 +0000
commitc47c993fd97823d672a899632223b1648658f20e (patch)
treebe260f3c5c05381790c201941287b7146fcb0a92 /src/util/String.c
parenta024a71319e8b8a4953a085b4840fe834f50ba0e (diff)
Make it possible to use the string stuff in other standalone tests. Patch
submitted by Jonathon Thornburg. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3212 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/String.c')
-rw-r--r--src/util/String.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/String.c b/src/util/String.c
index 1d9fc67b..61cdabd0 100644
--- a/src/util/String.c
+++ b/src/util/String.c
@@ -17,8 +17,10 @@
static const char *rcsid = "$Header$";
-#if defined(TEST_UTIL_STRSEP) \
- || defined(TEST_UTIL_STRLCPY) || defined(TEST_UTIL_STRLCAT)
+#if defined(STANDALONE_TEST) \
+ || defined(TEST_UTIL_STRSEP) \
+ || defined(TEST_UTIL_STRLCPY) \
+ || defined(TEST_UTIL_STRLCAT)
/*
* we're just compiling a standalone test driver
* ==> we don't need CCTK_FILEVERSION()