]> granicus.if.org Git - php/commitdiff
try to workaround problems with non-c99 on HPUX
authorAndrey Hristov <andrey@php.net>
Mon, 31 May 2010 16:51:03 +0000 (16:51 +0000)
committerAndrey Hristov <andrey@php.net>
Mon, 31 May 2010 16:51:03 +0000 (16:51 +0000)
ext/mysqlnd/mysqlnd_portability.h

index ed0a5c8b1485ed3b333a3bb11fbfef0696ea3701..40f614ab045fd3bf68ac81c67376a647087d061a 100644 (file)
@@ -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