summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_portability.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-05-31 16:51:03 +0000
committerAndrey Hristov <andrey@php.net>2010-05-31 16:51:03 +0000
commitbdb2d71dc72e38cdb5519f44ca15220bc5ce88c0 (patch)
treebe5ac3f0196d087f9cac1210d4fe71056e1d3231 /ext/mysqlnd/mysqlnd_portability.h
parent29a1d56076f970332a46a291d0a7c7fa1bf8882d (diff)
downloadphp-git-bdb2d71dc72e38cdb5519f44ca15220bc5ce88c0.tar.gz
try to workaround problems with non-c99 on HPUX
Diffstat (limited to 'ext/mysqlnd/mysqlnd_portability.h')
-rw-r--r--ext/mysqlnd/mysqlnd_portability.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_portability.h b/ext/mysqlnd/mysqlnd_portability.h
index ed0a5c8b14..40f614ab04 100644
--- a/ext/mysqlnd/mysqlnd_portability.h
+++ b/ext/mysqlnd/mysqlnd_portability.h
@@ -12,6 +12,8 @@ This file is public domain and comes with NO WARRANTY of any kind */
#ifndef MYSQLND_PORTABILITY_H
#define MYSQLND_PORTABILITY_H
+
+
/* Comes from global.h as OFFSET, renamed to STRUCT_OFFSET */
#define STRUCT_OFFSET(t, f) ((size_t)(char *)&((t *)0)->f)
@@ -38,6 +40,12 @@ This file is public domain and comes with NO WARRANTY of any kind */
# include <ext/mysqlnd/php_mysqlnd_config.h>
#endif /* _WIN32... */
+#if __STDC_VERSION__ < 199901L && !defined(atoll)
+ /* "inline" is a keyword */
+ #define atoll atol
+#endif
+
+
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif