Skip to content

Instantly share code, notes, and snippets.

@songrgg
Created June 30, 2015 16:16
Show Gist options
  • Save songrgg/89e10891f7a3f873bc7d to your computer and use it in GitHub Desktop.
Save songrgg/89e10891f7a3f873bc7d to your computer and use it in GitHub Desktop.
zend_long definition
// zend_long.h
/* This is the heart of the whole int64 enablement in zval. */
#if defined(__x86_64__) || defined(__LP64__) || defined(_LP64) || defined(_WIN64)
# define ZEND_ENABLE_ZVAL_LONG64 1
#endif
#ifdef ZEND_ENABLE_ZVAL_LONG64
typedef int64_t zend_long;
#else
typedef int32_t zend_long;
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment