summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pdo_pgsql/tests/common.phpt2
-rw-r--r--ext/pdo_sqlite/tests/common.phpt2
-rw-r--r--win32/php_inttypes.h9
3 files changed, 11 insertions, 2 deletions
diff --git a/ext/pdo_pgsql/tests/common.phpt b/ext/pdo_pgsql/tests/common.phpt
index 8a21371bf9..e764b39839 100644
--- a/ext/pdo_pgsql/tests/common.phpt
+++ b/ext/pdo_pgsql/tests/common.phpt
@@ -8,7 +8,7 @@ if (!extension_loaded('pdo_pgsql')) print 'skip'; ?>
# Also update config.inc if you make changes here...
$config = array(
- 'TESTS' => 'ext/pdo/tests'
+ 'TESTS' => __DIR__ . '/ext/pdo/tests'
);
if (false !== getenv('PDO_PGSQL_TEST_DSN')) {
diff --git a/ext/pdo_sqlite/tests/common.phpt b/ext/pdo_sqlite/tests/common.phpt
index 65ea0c96f4..da28d91950 100644
--- a/ext/pdo_sqlite/tests/common.phpt
+++ b/ext/pdo_sqlite/tests/common.phpt
@@ -8,5 +8,5 @@ return array(
'ENV' => array(
'PDOTEST_DSN' => 'sqlite::memory:'
),
- 'TESTS' => 'ext/pdo/tests'
+ 'TESTS' => __DIR__ . '/ext/pdo/tests'
);
diff --git a/win32/php_inttypes.h b/win32/php_inttypes.h
index ead903f78e..4130649cf2 100644
--- a/win32/php_inttypes.h
+++ b/win32/php_inttypes.h
@@ -33,6 +33,10 @@
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif // _MSC_VER ]
+// Starting with vc14, many of the C11 features are now included, so we only
+// need many of these typedefs and defines for older VS suites
+#if _MSC_VER < 1900
+
#ifndef _MSC_INTTYPES_H_ // [
#define _MSC_INTTYPES_H_
@@ -303,3 +307,8 @@ imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom)
#endif // _MSC_INTTYPES_H_ ]
+
+#else
+#include <inttypes.h>
+#endif
+