This commit is contained in:
CismonX 2019-07-16 22:16:01 +08:00
parent 9812ca0f3d
commit 672508bb38
4 changed files with 9 additions and 7 deletions

View File

@ -10,7 +10,7 @@ php:
env:
global:
- ARMA_VERSION="9.500.2"
- ARMA_VERSION="9.600.4"
- ARMA_SRC="http://sourceforge.net/projects/arma/files/armadillo-${ARMA_VERSION}.tar.xz"
before_install:

View File

@ -149,11 +149,11 @@ namespace php_arma
#else
static constexpr auto hdf5 = false;
#endif // ARMA_USE_HDF5
#if defined(__GNUC__) && !defined(__clang__)
#ifdef __GLIBCXX__
static constexpr auto stream_res = true;
#else
static constexpr auto stream_res = false;
#endif
#endif // __GLIBCXX__
};
constexpr const char features_php_name[] = "Features";

View File

@ -429,6 +429,7 @@ namespace php_arma
bool zval_is_scalar(zval *zv)
{
bad_scalar_type<T>();
return false;
}
template <>
@ -450,6 +451,7 @@ namespace php_arma
const char *scalar_type_name()
{
bad_scalar_type<T>();
return nullptr;
}
template <>

View File

@ -9,7 +9,7 @@
#include "php_arma.hh"
#if defined(__GNUC__) && !defined(__clang__)
#ifdef __GLIBCXX__
#include <ext/stdio_filebuf.h>
@ -30,11 +30,11 @@
extern std::ostream name; \
zval_to_iostream_unsupported()
#endif
#endif // __GLIBCXX__
namespace php_arma
{
#if defined(__GNUC__) && !defined(__clang__)
#ifdef __GLIBCXX__
zend_always_inline
int zval_to_fd(zval *zv)
{
@ -60,7 +60,7 @@ namespace php_arma
}
constexpr auto zval_to_iostream_supported = false;
#endif
#endif // __GLIBCXX__
}
#endif // !PHP_ARMA_STREAM_UTILS_HH