Merge remote-tracking branch 'origin/master' into feature/knx
This commit is contained in:
+15
-15
@@ -15,16 +15,16 @@ AC_PROG_CXX([g++-6 g++-5 g++-4.9 g++-4.8 g++])
|
|||||||
AX_CXX_COMPILE_STDCXX([11], [ext], [mandatory])
|
AX_CXX_COMPILE_STDCXX([11], [ext], [mandatory])
|
||||||
|
|
||||||
AC_CHECK_HEADERS([arpa/inet.h \
|
AC_CHECK_HEADERS([arpa/inet.h \
|
||||||
dirent.h \
|
dirent.h \
|
||||||
fcntl.h \
|
fcntl.h \
|
||||||
netdb.h \
|
netdb.h \
|
||||||
poll.h \
|
poll.h \
|
||||||
pthread.h \
|
pthread.h \
|
||||||
sys/ioctl.h \
|
sys/ioctl.h \
|
||||||
sys/select.h \
|
sys/select.h \
|
||||||
sys/time.h \
|
sys/time.h \
|
||||||
time.h \
|
time.h \
|
||||||
termios.h])
|
termios.h])
|
||||||
|
|
||||||
AC_CHECK_LIB([pthread], [pthread_setname_np],
|
AC_CHECK_LIB([pthread], [pthread_setname_np],
|
||||||
AC_DEFINE([HAVE_PTHREAD_SETNAME_NP], [1], [Defined if pthread_setname_np is available.]),
|
AC_DEFINE([HAVE_PTHREAD_SETNAME_NP], [1], [Defined if pthread_setname_np is available.]),
|
||||||
@@ -82,9 +82,9 @@ AC_ARG_WITH(ssl, AS_HELP_STRING([--without-ssl], [disable support for SSL]), [],
|
|||||||
if test "x$with_ssl" != "xno"; then
|
if test "x$with_ssl" != "xno"; then
|
||||||
AC_CHECK_LIB([ssl], [OPENSSL_init_ssl],
|
AC_CHECK_LIB([ssl], [OPENSSL_init_ssl],
|
||||||
[AC_CHECK_LIB([crypto], [CRYPTO_new_ex_data],
|
[AC_CHECK_LIB([crypto], [CRYPTO_new_ex_data],
|
||||||
[AC_DEFINE_UNQUOTED(HAVE_SSL, [1], [Defined if SSL is enabled.])],
|
[AC_DEFINE_UNQUOTED(HAVE_SSL, [1], [Defined if SSL is enabled.])],
|
||||||
[AC_MSG_RESULT([Could not find CRYPTO_new_ex_data in libcrypto.])
|
[AC_MSG_RESULT([Could not find CRYPTO_new_ex_data in libcrypto.])
|
||||||
with_ssl="no"])],
|
with_ssl="no"])],
|
||||||
[AC_MSG_RESULT([Could not find SSL_library_init in libssl.])
|
[AC_MSG_RESULT([Could not find SSL_library_init in libssl.])
|
||||||
with_ssl="no"])
|
with_ssl="no"])
|
||||||
fi
|
fi
|
||||||
@@ -153,8 +153,8 @@ AM_COND_IF([KNX], [AC_CONFIG_FILES([
|
|||||||
AC_DEFINE_UNQUOTED(PACKAGE_PIDFILE, LOCALSTATEDIR "/run/" PACKAGE ".pid", [The path and name of the PID file.])
|
AC_DEFINE_UNQUOTED(PACKAGE_PIDFILE, LOCALSTATEDIR "/run/" PACKAGE ".pid", [The path and name of the PID file.])
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_LOGFILE, LOCALSTATEDIR "/log/" PACKAGE ".log", [The path and name of the log file.])
|
AC_DEFINE_UNQUOTED(PACKAGE_LOGFILE, LOCALSTATEDIR "/log/" PACKAGE ".log", [The path and name of the log file.])
|
||||||
AC_DEFINE(SCAN_VERSION, "[m4_esyscmd_s([sed -e 's#^\([0-9]*\.[0-9]*\).*#\1#' -e 's#\.\([0-9]\)$#0\1#' -e 's#\.##' VERSION])]", [The version of the package formatted for the scan result.])
|
AC_DEFINE(SCAN_VERSION, "[m4_esyscmd_s([sed -e 's#^\([0-9]*\.[0-9]*\).*#\1#' -e 's#\.\([0-9]\)$#0\1#' -e 's#\.##' VERSION])]", [The version of the package formatted for the scan result.])
|
||||||
AC_DEFINE(PACKAGE_VERSION_MAJOR, "[m4_esyscmd_s([sed -e 's#^\([0-9]*\)\..*$#\1#' VERSION])]", [The major version of the package.])
|
AC_DEFINE(PACKAGE_VERSION_MAJOR, [m4_esyscmd_s([sed -e 's#^\([0-9]*\)\..*$#\1#' VERSION])], [The major version of the package.])
|
||||||
AC_DEFINE(PACKAGE_VERSION_MINOR, "[m4_esyscmd_s([sed -e 's#^.*\.\([0-9]*\)$#\1#' VERSION])]", [The minor version of the package.])
|
AC_DEFINE(PACKAGE_VERSION_MINOR, [m4_esyscmd_s([sed -e 's#^.*\.\([0-9]*\)$#\1#' VERSION])], [The minor version of the package.])
|
||||||
AC_ARG_VAR(GIT_REVISION, [Predefined value to use for revision instead of running git describe.])
|
AC_ARG_VAR(GIT_REVISION, [Predefined value to use for revision instead of running git describe.])
|
||||||
if test -n "$GIT_REVISION"; then
|
if test -n "$GIT_REVISION"; then
|
||||||
AC_DEFINE(REVISION, "[m4_esyscmd_s([echo "$GIT_REVISION"])]", [The revision of the package.])
|
AC_DEFINE(REVISION, "[m4_esyscmd_s([echo "$GIT_REVISION"])]", [The revision of the package.])
|
||||||
|
|||||||
@@ -187,9 +187,10 @@ enum PartType {
|
|||||||
/**
|
/**
|
||||||
* Parse a float value from the 32 bit representation (IEEE 754).
|
* Parse a float value from the 32 bit representation (IEEE 754).
|
||||||
* @param value the 32 bit representation of the float value.
|
* @param value the 32 bit representation of the float value.
|
||||||
|
* @param negative true if the value is negative.
|
||||||
* @return the float value.
|
* @return the float value.
|
||||||
*/
|
*/
|
||||||
float uintToFloat(unsigned int value);
|
float uintToFloat(unsigned int value, bool negative);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Format a float value to the 32 bit representation (IEEE 754).
|
* Format a float value to the 32 bit representation (IEEE 754).
|
||||||
|
|||||||
Reference in New Issue
Block a user