summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-26 10:16:52 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-26 10:16:52 +0100
commitf0147293990f2a400912f4f8abd1b456319da0e6 (patch)
tree2481801b779330eccdd12126897f12918fac3a67 /include
parente363d36a55e74d12aeef28b2a4b1f3ba074495fd (diff)
fixed _NOEXCEPT macro for normal compilers, updated version number to force recompile of extensions after we introduced the constants
Diffstat (limited to 'include')
-rw-r--r--include/noexcept.h21
-rw-r--r--include/version.h2
2 files changed, 22 insertions, 1 deletions
diff --git a/include/noexcept.h b/include/noexcept.h
new file mode 100644
index 0000000..25dc1a4
--- /dev/null
+++ b/include/noexcept.h
@@ -0,0 +1,21 @@
+/**
+ * NoExcept.h
+ *
+ * Some compilers (hello microsoft!) do not yet support the "noexcept"
+ * keyword. To overcome this, we use a macro that expands to "noexcept"
+ *
+ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
+ * @author atvive <https://github.com/atvise>
+ */
+
+/**
+ * Macro to be able to support MSVC compiler
+ */
+#ifndef _NOEXCEPT
+# ifndef _MSC_VER
+# define _NOEXCEPT noexcept
+# else
+# define _NOEXCEPT __declspec(nothrow)
+# endif
+#endif
+
diff --git a/include/version.h b/include/version.h
index 85d2b66..7038f20 100644
--- a/include/version.h
+++ b/include/version.h
@@ -12,6 +12,6 @@
/**
* Macro with version number (this is incremented with every release)
*/
-#define PHPCPP_API_VERSION 20150120
+#define PHPCPP_API_VERSION 20150126