libmemcached-1.0: fix #57 (cinttypes/inttypes.h)
authorMichael Wallner <mike@php.net>
Wed, 22 Jan 2020 08:20:25 +0000 (09:20 +0100)
committerMichael Wallner <mike@php.net>
Wed, 22 Jan 2020 08:20:25 +0000 (09:20 +0100)
libmemcached-1.0/memcached.h

index bc16e7370953e112f68e808d27b3e0b2c152dacb..1ee54bbe03613e8b07945fc5000c02f2df480ecc 100644 (file)
 #endif
 
 #ifdef __cplusplus
-#  include <cinttypes>
+#  if __cplusplus >= 201103L
+#    include <cinttypes>
+#  else
+#    include <inttypes.h>
+#  endif
 #  include <cstddef>
 #  include <cstdlib>
 #else