diff --git a/include/sqlpp11/data_types/boolean/operand.h b/include/sqlpp11/data_types/boolean/operand.h index b22c7820..03171ea2 100644 --- a/include/sqlpp11/data_types/boolean/operand.h +++ b/include/sqlpp11/data_types/boolean/operand.h @@ -26,7 +26,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include // Required for some compilers to use aliases for boolean operators +#ifdef _MSC_VER +#include // Required to support boolean operator aliases +#endif #include #include diff --git a/include/sqlpp11/logic.h b/include/sqlpp11/logic.h index be3ffd33..fa006645 100644 --- a/include/sqlpp11/logic.h +++ b/include/sqlpp11/logic.h @@ -26,7 +26,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include // Required for some compilers to use aliases for boolean operators +#ifdef _MSC_VER +#include // Required to support boolean operator aliases +#endif + #include namespace sqlpp diff --git a/include/sqlpp11/mysql/bind_result.h b/include/sqlpp11/mysql/bind_result.h index 0a212672..ac1b2239 100644 --- a/include/sqlpp11/mysql/bind_result.h +++ b/include/sqlpp11/mysql/bind_result.h @@ -26,18 +26,19 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifdef _MSC_VER +#include // Required to support boolean operator aliases +#endif + #include +#include +#include #include #include #include #include -#include -#ifdef _MSC_VER -#include -#endif -#include namespace sqlpp { diff --git a/include/sqlpp11/mysql/char_result.h b/include/sqlpp11/mysql/char_result.h index a3cfc6f9..979fd4d5 100644 --- a/include/sqlpp11/mysql/char_result.h +++ b/include/sqlpp11/mysql/char_result.h @@ -26,7 +26,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#ifdef _MSC_VER +#include // Required to support boolean operator aliases +#endif + #include #include #include diff --git a/include/sqlpp11/postgresql/bind_result.h b/include/sqlpp11/postgresql/bind_result.h index 9dc7086e..15c83876 100644 --- a/include/sqlpp11/postgresql/bind_result.h +++ b/include/sqlpp11/postgresql/bind_result.h @@ -27,6 +27,10 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#ifdef _MSC_VER +#include // Required to support boolean operator aliases +#endif + #include #include #include @@ -39,7 +43,6 @@ #include "detail/prepared_statement_handle.h" #ifdef _MSC_VER -#include #pragma warning(disable : 4800) // int to bool #endif namespace sqlpp diff --git a/include/sqlpp11/sqlite3/bind_result.h b/include/sqlpp11/sqlite3/bind_result.h index 95405f18..f4394980 100644 --- a/include/sqlpp11/sqlite3/bind_result.h +++ b/include/sqlpp11/sqlite3/bind_result.h @@ -26,6 +26,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifdef _MSC_VER +#include // Required to support boolean operator aliases +#endif + #include #include #include @@ -36,7 +40,6 @@ #include #ifdef _MSC_VER -#include #pragma warning(push) #pragma warning(disable : 4251) #endif diff --git a/include/sqlpp11/sqlite3/prepared_statement.h b/include/sqlpp11/sqlite3/prepared_statement.h index 4c84232c..78a6dc67 100644 --- a/include/sqlpp11/sqlite3/prepared_statement.h +++ b/include/sqlpp11/sqlite3/prepared_statement.h @@ -26,8 +26,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifdef _MSC_VER +#include // Required to support boolean operator aliases +#endif + #include -#include #include #include #include diff --git a/include/sqlpp11/transaction.h b/include/sqlpp11/transaction.h index 9635edbd..0eb9a0c3 100644 --- a/include/sqlpp11/transaction.h +++ b/include/sqlpp11/transaction.h @@ -26,9 +26,13 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifdef _MSC_VER +#include // Required to support boolean operator aliases +#endif + #include #include -#include + namespace sqlpp {