Remove HAVE_STDLIB_H check and replace stdlib.h by cstdlib

This commit is contained in:
Luis Díaz Más 2018-05-02 23:11:00 +02:00
parent aded1965c5
commit d55b2b1b65
14 changed files with 10 additions and 20 deletions

View File

@ -57,9 +57,6 @@
#endif
#endif
// Define if you have the <stdlib.h> header file.
#cmakedefine EXV_HAVE_STDLIB_H
// Define if you have the strerror function.
#cmakedefine EXV_HAVE_STRERROR

View File

@ -65,9 +65,6 @@
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the `strchr' function. */
#undef HAVE_STRCHR

View File

@ -36,7 +36,6 @@ check_include_file( "memory.h" EXV_HAVE_MEMORY_H )
check_include_file( "process.h" EXV_HAVE_PROCESS_H )
check_include_file( "stdbool.h" EXV_HAVE_STDBOOL_H )
check_include_file( "stdint.h" EXV_HAVE_STDINT_H )
check_include_file( "stdlib.h" EXV_HAVE_STDLIB_H )
check_include_file( "strings.h" EXV_HAVE_STRINGS_H )
check_include_file( "sys/mman.h" EXV_HAVE_SYS_MMAN_H )
check_include_file( "sys/stat.h" EXV_HAVE_SYS_STAT_H )

View File

@ -82,9 +82,6 @@
/* Define to 1 if you have the <stdint.h> header file. */
/* #undef EXV_HAVE_STDINT_H */
/* Define to 1 if you have the <stdlib.h> header file. */
/* #undef EXV_HAVE_STDLIB_H */
/* Define to 1 if you have the `strerror' function. */
#define EXV_HAVE_STRERROR 1

View File

@ -5,7 +5,7 @@
#include <exiv2/exiv2.hpp>
#include <iostream>
#include <stdlib.h>
#include <cstdlib>
void httpcon(const std::string& url, bool useHttp1_0 = false) {
Exiv2::Dictionary response;

View File

@ -13,7 +13,7 @@
#include <vector>
#include <set>
#include <stdlib.h>
#include <cstdlib>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -12,7 +12,7 @@
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#include <time.h>
#include <string.h>
#include <sys/stat.h>

View File

@ -47,7 +47,7 @@
// stdin handler includes
#ifndef _MSC_VER
#include <stdlib.h>
#include <cstdlib>
#include <stdio.h>
#include <string.h>
#if defined(__CYGWIN__) || defined(__MINGW__)

View File

@ -37,7 +37,7 @@
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#include <time.h>
#include <sys/stat.h>
#include <string.h>

View File

@ -33,7 +33,7 @@ https://github.com/benhoyt/inih
#include <string.h>
#if !INI_USE_STACK
#include <stdlib.h>
#include <cstdlib>
#endif
#define MAX_SECTION 50

View File

@ -154,7 +154,7 @@
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <cstdlib>
#include <math.h>
#if defined(__cplusplus)
#include <ios>

View File

@ -13,7 +13,7 @@
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <cstdlib>
#include <locale.h>
#include <errno.h>

View File

@ -17,7 +17,7 @@
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <cstdlib>
#include <locale.h>
#include <errno.h>

View File

@ -14,7 +14,7 @@
#define XML_SetExternalEntityRefHandlerArg XML_SetExternalEntRefHandlerArg
#endif
#include <stdlib.h>
#include <cstdlib>
#include "expat_external.h"
#ifdef __cplusplus