Recover accidentally deleted code
This commit is contained in:
@@ -107,6 +107,7 @@ check_function_exists(waitpid HAVE_WAITPID)
|
|||||||
|
|
||||||
# Mostly universal symbols.
|
# Mostly universal symbols.
|
||||||
check_cxx_symbol_exists(strtof cstdlib HAVE_STRTOF)
|
check_cxx_symbol_exists(strtof cstdlib HAVE_STRTOF)
|
||||||
|
check_symbol_exists(M_PI math.h HAVE_M_PI)
|
||||||
check_symbol_exists(posix_fadvise fcntl.h HAVE_POSIX_FADVISE)
|
check_symbol_exists(posix_fadvise fcntl.h HAVE_POSIX_FADVISE)
|
||||||
|
|
||||||
# Checks to make it easier to work with 32-bit/64-bit builds if required.
|
# Checks to make it easier to work with 32-bit/64-bit builds if required.
|
||||||
|
|||||||
@@ -60,6 +60,9 @@
|
|||||||
/* Defined to 1 if the underlying system provides the strtof function. */
|
/* Defined to 1 if the underlying system provides the strtof function. */
|
||||||
#cmakedefine HAVE_STRTOF 1
|
#cmakedefine HAVE_STRTOF 1
|
||||||
|
|
||||||
|
/* Defined to 1 if the underlying system provides the M_PI constant. */
|
||||||
|
#cmakedefine HAVE_M_PI 1
|
||||||
|
|
||||||
/* Defined to 1 if the underlying system provides the posix_fadvise function. */
|
/* Defined to 1 if the underlying system provides the posix_fadvise function. */
|
||||||
#cmakedefine HAVE_POSIX_FADVISE 1
|
#cmakedefine HAVE_POSIX_FADVISE 1
|
||||||
|
|
||||||
@@ -126,6 +129,11 @@ typedef int pid_t;
|
|||||||
inline float strtof( const char *s, char **se ) { return (float) strtod( s, se ); }
|
inline float strtof( const char *s, char **se ) { return (float) strtod( s, se ); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(HAVE_M_PI)
|
||||||
|
/* This is only called if the math header files don't include it: stating it here is fine. */
|
||||||
|
#define M_PI 3.1415926535897932384626433832795
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define standard endianness macros, if they're missing. */
|
/* Define standard endianness macros, if they're missing. */
|
||||||
#if defined(HAVE_ENDIAN_H)
|
#if defined(HAVE_ENDIAN_H)
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user