From ebd997c5ce55fd260696f9bb117f1f06c09a4759 Mon Sep 17 00:00:00 2001
From: znone <glyc@sina.com.cn>
Date: Sun, 16 Jun 2019 13:52:44 +0000
Subject: [PATCH] 通过 MariaDB 的非阻塞函数访问 MySQL。

---
 include/qtl_common.hpp |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/include/qtl_common.hpp b/include/qtl_common.hpp
index db7c607..8bea74d 100644
--- a/include/qtl_common.hpp
+++ b/include/qtl_common.hpp
@@ -1,13 +1,19 @@
-#ifndef _MYDTL_DATABASE_H_
-#define _MYDTL_DATABASE_H_
+#ifndef _QTL_COMMON_H_
+#define _QTL_COMMON_H_
 
 #if defined(_MSC_VER)
 #if _MSC_VER<1800
-#error MYDTL need C++11 compiler
+#error QTL need C++11 compiler
 #endif //MSC
 #elif __cplusplus<201103L
-#error MYDTL need C++11 compiler
+#error QTL need C++11 compiler
 #endif //C++11
+
+#if _MSC_VER>=1800 && _MSC_VER<1900
+#define NOEXCEPT throw()
+#else
+#define NOEXCEPT noexcept
+#endif //NOEXCEPT
 
 #include <stdint.h>
 #include <string.h>
@@ -1167,4 +1173,4 @@
 
 }
 
-#endif //_MYDTL_DATABASE_H_
+#endif //_QTL_COMMON_H_

--
Gitblit v1.9.3