memmove, strtoul, and strcasestr functions are part of ISO C90, remove the compatibility shim

This commit is contained in:
Ondřej Surý
2018-08-21 15:10:32 +02:00
parent 1e1804bb96
commit efd613e874
16 changed files with 5 additions and 197 deletions

View File

@@ -91,21 +91,6 @@
*/
@ISC_PLATFORM_NEEDSTRLCAT@
/*
* Define if this system needs strtoul.
*/
@ISC_PLATFORM_NEEDSTRTOUL@
/*
* Define if this system needs memmove.
*/
@ISC_PLATFORM_NEEDMEMMOVE@
/*
* Define if this system needs strcasestr.
*/
@ISC_PLATFORM_NEEDSTRCASESTR@
/***
*** Miscellaneous.
***/

View File

@@ -1,33 +0,0 @@
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
*/
#ifndef ISC_STDLIB_H
#define ISC_STDLIB_H 1
/*! \file isc/stdlib.h */
#include <stdlib.h>
#include <isc/lang.h>
#include <isc/platform.h>
#ifdef ISC_PLATFORM_NEEDSTRTOUL
#define strtoul isc_strtoul
#endif
ISC_LANG_BEGINDECLS
unsigned long isc_strtoul(const char *, char **, int);
ISC_LANG_ENDDECLS
#endif