summaryrefslogtreecommitdiff
path: root/include/ntp_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ntp_string.h')
-rw-r--r--include/ntp_string.h26
1 files changed, 4 insertions, 22 deletions
diff --git a/include/ntp_string.h b/include/ntp_string.h
index aab7084b0536e..9b62ec2d97e11 100644
--- a/include/ntp_string.h
+++ b/include/ntp_string.h
@@ -1,13 +1,9 @@
/*
- * Define string ops: strchr strrchr memcmp memmove memset
+ * Define string ops: strchr strrchr memcmp memmove memset
*/
-#ifndef _ntp_string_h
-#define _ntp_string_h
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#ifndef NTP_STRING_H
+#define NTP_STRING_H
#ifdef HAVE_MEMORY_H
# include <memory.h>
@@ -21,20 +17,6 @@
# include <bstring.h>
#endif
-#ifndef STDC_HEADERS
-# ifndef HAVE_STRCHR
-# include <strings.h>
-# define strchr index
-# define strrchr rindex
-# endif
-# ifndef __GNUC__
-char *strchr(), *strrchr();
-# endif
-# ifndef HAVE_MEMCPY
-# define NTP_NEED_BOPS
-# endif
-#endif /* STDC_HEADERS */
-
#ifdef NTP_NEED_BOPS
#ifdef HAVE_STRINGS_H
@@ -52,4 +34,4 @@ void ntp_memset (char *, int, int);
ntp_memset((char *)(a), x, c)
#endif /* NTP_NEED_BOPS */
-#endif /* _ntp_string_h */
+#endif /* NTP_STRING_H */