Skip to content

Commit bdb2d71

Browse files
committed
try to workaround problems with non-c99 on HPUX
1 parent 29a1d56 commit bdb2d71

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/mysqlnd/mysqlnd_portability.h

+8
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This file is public domain and comes with NO WARRANTY of any kind */
1212
#ifndef MYSQLND_PORTABILITY_H
1313
#define MYSQLND_PORTABILITY_H
1414

15+
16+
1517
/* Comes from global.h as OFFSET, renamed to STRUCT_OFFSET */
1618
#define STRUCT_OFFSET(t, f) ((size_t)(char *)&((t *)0)->f)
1719

@@ -38,6 +40,12 @@ This file is public domain and comes with NO WARRANTY of any kind */
3840
# include <ext/mysqlnd/php_mysqlnd_config.h>
3941
#endif /* _WIN32... */
4042

43+
#if __STDC_VERSION__ < 199901L && !defined(atoll)
44+
/* "inline" is a keyword */
45+
#define atoll atol
46+
#endif
47+
48+
4149
#ifdef HAVE_SYS_TYPES_H
4250
#include <sys/types.h>
4351
#endif

0 commit comments

Comments
 (0)