summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/externs.h5
-rw-r--r--src/h-config.h6
-rw-r--r--src/util.cc18
3 files changed, 0 insertions, 29 deletions
diff --git a/src/externs.h b/src/externs.h
index 59e246c8..ad4bece5 100644
--- a/src/externs.h
+++ b/src/externs.h
@@ -2190,11 +2190,6 @@ extern void automatizer_load(cptr file_name);
extern void user_name(char *buf, int id);
#endif
-#ifndef HAS_MEMSET
-/* util.c */
-extern char *memset(char*, int, huge);
-#endif
-
#ifndef HAS_STRICMP
/* util.c */
extern int stricmp(cptr a, cptr b);
diff --git a/src/h-config.h b/src/h-config.h
index 220be370..66fa5c1b 100644
--- a/src/h-config.h
+++ b/src/h-config.h
@@ -242,12 +242,6 @@ extern "C" {
*/
-/*
- * OPTION: Define "HAS_MEMSET" only if "memset()" exists.
- * Note that the "memset()" routines are used in "z-virt.h"
- */
-#define HAS_MEMSET
-
/*
* OPTION: Define "HAS_USLEEP" only if "usleep()" exists.
diff --git a/src/util.cc b/src/util.cc
index bc539b5c..9714b374 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -7,24 +7,6 @@
#include "messages.h"
#include "quark.h"
-#ifndef HAS_MEMSET
-
-/*
-* For those systems that don't have "memset()"
-*
-* Set the value of each of 'n' bytes starting at 's' to 'c', return 's'
-* If 'n' is negative, you will erase a whole lot of memory.
-*/
-char *memset(char *s, int c, huge n)
-{
- char *t;
- for (t = s; len--; ) *t++ = c;
- return (s);
-}
-
-#endif
-
-
#ifndef HAS_STRICMP