0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-01-03 11:21:51 +00:00

move #undef min/max to v8js_v8.h

This commit is contained in:
Stefan Siegl 2017-03-10 22:48:23 +01:00
parent b6d47ac7a8
commit e5f57b7661
3 changed files with 6 additions and 10 deletions

View File

@ -36,11 +36,6 @@ extern "C" {
#include "zend_exceptions.h"
}
/* On Windows there are max and min macros, which would clobber the
* method names of std::numeric_limits< > otherwise. */
#undef max
#undef min
#define PHP_V8JS_SCRIPT_RES_NAME "V8Js script"
/* {{{ Class Entries */

View File

@ -34,11 +34,6 @@ extern "C" {
#include "zend_exceptions.h"
}
/* On Windows there are max and min macros, which would clobber the
* method names of std::numeric_limits< > otherwise. */
#undef max
#undef min
static int v8js_is_assoc_array(HashTable *myht TSRMLS_DC) /* {{{ */
{
zend_string *key;

View File

@ -36,6 +36,12 @@
#define V8JS_GLOBAL(isolate) ((isolate)->GetCurrentContext()->Global())
/* On Windows there are max and min macros, which would clobber the
* method names of std::numeric_limits< > otherwise. */
#undef max
#undef min
/* Extracts a C string from a V8 Utf8Value. */
static inline const char * ToCString(const v8::String::Utf8Value &value) /* {{{ */
{