summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2005-01-11 07:19:08 +0100
committerTor Andersson <tor@ghostscript.com>2005-01-11 07:19:08 +0100
commit4a6def1aebcb61599f9d975e92079aad5bb423c6 (patch)
tree65d7ae5520822cc10b79ef5d421672f5b7d6f435 /util
parent15db9438f7a852643bb2b5e81e67de4eb805b173 (diff)
downloadmupdf-4a6def1aebcb61599f9d975e92079aad5bb423c6.tar.xz
rename apps directory and reorganize macpdf.app
Diffstat (limited to 'util')
-rw-r--r--util/strlcat.c5
-rw-r--r--util/strlcpy.c4
-rw-r--r--util/strsep.c4
3 files changed, 13 insertions, 0 deletions
diff --git a/util/strlcat.c b/util/strlcat.c
index 5f260abb..46edd434 100644
--- a/util/strlcat.c
+++ b/util/strlcat.c
@@ -4,6 +4,8 @@
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
+#ifdef NEED_STRLCAT
+
#include <string.h>
int strlcat(char *dst, const char *src, int siz)
@@ -32,3 +34,6 @@ int strlcat(char *dst, const char *src, int siz)
return dlen + (s - src); /* count does not include NUL */
}
+
+#endif
+
diff --git a/util/strlcpy.c b/util/strlcpy.c
index 73416ae1..72e45d6b 100644
--- a/util/strlcpy.c
+++ b/util/strlcpy.c
@@ -3,6 +3,8 @@
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
+#ifdef NEED_STRLCPY
+
#include <string.h>
int strlcpy(char *dst, const char *src, int siz)
@@ -30,3 +32,5 @@ int strlcpy(char *dst, const char *src, int siz)
return(s - src - 1); /* count does not include NUL */
}
+#endif
+
diff --git a/util/strsep.c b/util/strsep.c
index e54903ce..e3592c2a 100644
--- a/util/strsep.c
+++ b/util/strsep.c
@@ -1,3 +1,5 @@
+#ifdef NEED_STRSEP
+
#include <string.h>
char *strsep(char **stringp, const char *delim)
@@ -9,3 +11,5 @@ char *strsep(char **stringp, const char *delim)
return ret;
}
+#endif
+