aboutsummaryrefslogtreecommitdiff
path: root/benchtests/bench-stpncpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchtests/bench-stpncpy.c')
-rw-r--r--benchtests/bench-stpncpy.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/benchtests/bench-stpncpy.c b/benchtests/bench-stpncpy.c
index 488ed42db2..40c82cf716 100644
--- a/benchtests/bench-stpncpy.c
+++ b/benchtests/bench-stpncpy.c
@@ -25,18 +25,11 @@
#endif /* WIDE */
#include "bench-string.h"
#ifndef WIDE
-# define CHAR char
# define SIMPLE_STPNCPY simple_stpncpy
# define STUPID_STPNCPY stupid_stpncpy
-# define STPNCPY stpncpy
-# define STRNLEN strnlen
#else
-# include <wchar.h>
-# define CHAR wchar_t
# define SIMPLE_STPNCPY simple_wcpncpy
# define STUPID_STPNCPY stupid_wcpncpy
-# define STPNCPY wcpncpy
-# define STRNLEN wcsnlen
#endif /* WIDE */
CHAR *SIMPLE_STPNCPY (CHAR *, const CHAR *, size_t);
@@ -74,5 +67,4 @@ STUPID_STPNCPY (CHAR *dst, const CHAR *src, size_t n)
return dst + nc;
}
-#undef CHAR
#include "bench-strncpy.c"