From f46376ed301fcf8c3c94b9480ccec1310f69d8db Mon Sep 17 00:00:00 2001 From: MeanSquaredError <35379301+MeanSquaredError@users.noreply.github.com> Date: Mon, 24 Jul 2023 14:03:21 +0300 Subject: [PATCH] Replace include guards with "#pragma once" in all header files and in the database model generator scripts. --- connector_api/bind_result.h | 6 ++---- connector_api/connection.h | 7 ++----- connector_api/interpreter.h | 7 ++----- connector_api/prepared_statement.h | 6 ++---- include/sqlpp11/aggregate_function_operators.h | 7 ++----- include/sqlpp11/aggregate_functions.h | 7 ++----- include/sqlpp11/aggregate_functions/avg.h | 7 ++----- include/sqlpp11/aggregate_functions/count.h | 7 ++----- include/sqlpp11/aggregate_functions/max.h | 7 ++----- include/sqlpp11/aggregate_functions/min.h | 7 ++----- include/sqlpp11/aggregate_functions/sum.h | 7 ++----- include/sqlpp11/alias.h | 7 ++----- include/sqlpp11/alias_operators.h | 6 ++---- include/sqlpp11/alias_provider.h | 7 ++----- include/sqlpp11/all_of.h | 7 ++----- include/sqlpp11/any.h | 7 ++----- include/sqlpp11/assignment.h | 7 ++----- include/sqlpp11/auto_alias.h | 7 ++----- include/sqlpp11/bad_expression.h | 7 ++----- include/sqlpp11/basic_expression_operators.h | 7 ++----- include/sqlpp11/boolean_expression.h | 7 ++----- include/sqlpp11/case.h | 7 ++----- include/sqlpp11/char_sequence.h | 7 ++----- include/sqlpp11/chrono.h | 7 ++----- include/sqlpp11/column.h | 7 ++----- include/sqlpp11/column_fwd.h | 7 ++----- include/sqlpp11/column_types.h | 7 ++----- include/sqlpp11/connection.h | 7 ++----- include/sqlpp11/consistent.h | 7 ++----- include/sqlpp11/cte.h | 7 ++----- include/sqlpp11/custom_query.h | 6 ++---- include/sqlpp11/data_types.h | 7 ++----- include/sqlpp11/data_types/blob.h | 7 ++----- include/sqlpp11/data_types/blob/column_operators.h | 6 ++---- include/sqlpp11/data_types/blob/data_type.h | 6 ++---- include/sqlpp11/data_types/blob/expression_operators.h | 6 ++---- include/sqlpp11/data_types/blob/operand.h | 6 ++---- include/sqlpp11/data_types/blob/parameter_value.h | 6 ++---- include/sqlpp11/data_types/blob/result_field.h | 6 ++---- include/sqlpp11/data_types/blob/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/boolean.h | 7 ++----- include/sqlpp11/data_types/boolean/column_operators.h | 6 ++---- include/sqlpp11/data_types/boolean/data_type.h | 7 ++----- include/sqlpp11/data_types/boolean/expression_operators.h | 7 ++----- include/sqlpp11/data_types/boolean/operand.h | 7 ++----- include/sqlpp11/data_types/boolean/parameter_value.h | 7 ++----- include/sqlpp11/data_types/boolean/result_field.h | 7 ++----- include/sqlpp11/data_types/boolean/wrap_operand.h | 7 ++----- include/sqlpp11/data_types/column_operators.h | 7 ++----- include/sqlpp11/data_types/day_point.h | 7 ++----- include/sqlpp11/data_types/day_point/column_operators.h | 6 ++---- include/sqlpp11/data_types/day_point/data_type.h | 6 ++---- .../sqlpp11/data_types/day_point/expression_operators.h | 6 ++---- include/sqlpp11/data_types/day_point/operand.h | 6 ++---- include/sqlpp11/data_types/day_point/parameter_value.h | 6 ++---- include/sqlpp11/data_types/day_point/result_field.h | 6 ++---- include/sqlpp11/data_types/day_point/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/floating_point.h | 7 ++----- .../sqlpp11/data_types/floating_point/column_operators.h | 6 ++---- include/sqlpp11/data_types/floating_point/data_type.h | 6 ++---- .../data_types/floating_point/expression_operators.h | 6 ++---- include/sqlpp11/data_types/floating_point/operand.h | 6 ++---- .../sqlpp11/data_types/floating_point/parameter_value.h | 6 ++---- include/sqlpp11/data_types/floating_point/result_field.h | 6 ++---- include/sqlpp11/data_types/floating_point/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/integral.h | 7 ++----- include/sqlpp11/data_types/integral/column_operators.h | 7 ++----- include/sqlpp11/data_types/integral/data_type.h | 6 ++---- .../sqlpp11/data_types/integral/expression_operators.h | 6 ++---- include/sqlpp11/data_types/integral/operand.h | 7 ++----- include/sqlpp11/data_types/integral/parameter_value.h | 6 ++---- include/sqlpp11/data_types/integral/result_field.h | 6 ++---- include/sqlpp11/data_types/integral/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/no_value.h | 7 ++----- include/sqlpp11/data_types/no_value/column_operators.h | 6 ++---- include/sqlpp11/data_types/no_value/data_type.h | 7 ++----- .../sqlpp11/data_types/no_value/expression_operators.h | 7 ++----- include/sqlpp11/data_types/no_value/operand.h | 7 ++----- include/sqlpp11/data_types/no_value/parameter_value.h | 7 ++----- include/sqlpp11/data_types/no_value/result_field.h | 7 ++----- include/sqlpp11/data_types/no_value/wrap_operand.h | 7 ++----- include/sqlpp11/data_types/parameter_value.h | 7 ++----- include/sqlpp11/data_types/parameter_value_base.h | 6 ++---- include/sqlpp11/data_types/text.h | 7 ++----- include/sqlpp11/data_types/text/column_operators.h | 6 ++---- include/sqlpp11/data_types/text/concat.h | 7 ++----- include/sqlpp11/data_types/text/data_type.h | 6 ++---- include/sqlpp11/data_types/text/expression_operators.h | 6 ++---- include/sqlpp11/data_types/text/like.h | 7 ++----- include/sqlpp11/data_types/text/operand.h | 6 ++---- include/sqlpp11/data_types/text/parameter_value.h | 6 ++---- include/sqlpp11/data_types/text/result_field.h | 6 ++---- include/sqlpp11/data_types/text/return_type_like.h | 7 ++----- include/sqlpp11/data_types/text/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/time_of_day.h | 7 ++----- include/sqlpp11/data_types/time_of_day/column_operators.h | 6 ++---- include/sqlpp11/data_types/time_of_day/data_type.h | 6 ++---- .../sqlpp11/data_types/time_of_day/expression_operators.h | 6 ++---- include/sqlpp11/data_types/time_of_day/operand.h | 6 ++---- include/sqlpp11/data_types/time_of_day/parameter_value.h | 6 ++---- include/sqlpp11/data_types/time_of_day/result_field.h | 6 ++---- include/sqlpp11/data_types/time_of_day/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/time_point.h | 7 ++----- include/sqlpp11/data_types/time_point/column_operators.h | 6 ++---- include/sqlpp11/data_types/time_point/data_type.h | 6 ++---- .../sqlpp11/data_types/time_point/expression_operators.h | 6 ++---- include/sqlpp11/data_types/time_point/operand.h | 6 ++---- include/sqlpp11/data_types/time_point/parameter_value.h | 6 ++---- include/sqlpp11/data_types/time_point/result_field.h | 6 ++---- include/sqlpp11/data_types/time_point/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/unsigned_integral.h | 7 ++----- .../data_types/unsigned_integral/column_operators.h | 7 ++----- include/sqlpp11/data_types/unsigned_integral/data_type.h | 6 ++---- .../data_types/unsigned_integral/expression_operators.h | 6 ++---- include/sqlpp11/data_types/unsigned_integral/operand.h | 7 ++----- .../data_types/unsigned_integral/parameter_value.h | 6 ++---- .../sqlpp11/data_types/unsigned_integral/result_field.h | 6 ++---- .../sqlpp11/data_types/unsigned_integral/wrap_operand.h | 6 ++---- include/sqlpp11/default_value.h | 7 ++----- include/sqlpp11/detail/column_tuple_merge.h | 7 ++----- include/sqlpp11/detail/enable_if.h | 7 ++----- include/sqlpp11/detail/float_safe_ostringstream.h | 7 ++----- include/sqlpp11/detail/get_first.h | 7 ++----- include/sqlpp11/detail/get_last.h | 7 ++----- include/sqlpp11/detail/index_sequence.h | 7 ++----- include/sqlpp11/detail/pick_arg.h | 7 ++----- include/sqlpp11/detail/type_set.h | 7 ++----- include/sqlpp11/detail/type_vector.h | 7 ++----- include/sqlpp11/detail/void.h | 7 ++----- include/sqlpp11/dynamic_join.h | 7 ++----- include/sqlpp11/dynamic_pre_join.h | 7 ++----- include/sqlpp11/dynamic_select_column_list.h | 7 ++----- include/sqlpp11/eval.h | 7 ++----- include/sqlpp11/exception.h | 7 ++----- include/sqlpp11/exists.h | 7 ++----- include/sqlpp11/expression.h | 7 ++----- include/sqlpp11/expression_fwd.h | 7 ++----- include/sqlpp11/expression_operators.h | 7 ++----- include/sqlpp11/expression_return_types.h | 7 ++----- include/sqlpp11/field_spec.h | 7 ++----- include/sqlpp11/for_update.h | 7 ++----- include/sqlpp11/from.h | 7 ++----- include/sqlpp11/functions.h | 7 ++----- include/sqlpp11/group_by.h | 7 ++----- include/sqlpp11/having.h | 7 ++----- include/sqlpp11/hidden.h | 6 ++---- include/sqlpp11/in.h | 7 ++----- include/sqlpp11/in_fwd.h | 7 ++----- include/sqlpp11/inconsistent.h | 7 ++----- include/sqlpp11/insert.h | 7 ++----- include/sqlpp11/insert_value.h | 7 ++----- include/sqlpp11/insert_value_list.h | 7 ++----- include/sqlpp11/interpret_tuple.h | 7 ++----- include/sqlpp11/interpretable.h | 7 ++----- include/sqlpp11/interpretable_list.h | 7 ++----- include/sqlpp11/into.h | 7 ++----- include/sqlpp11/is_equal_to_or_null.h | 7 ++----- include/sqlpp11/is_not_null.h | 7 ++----- include/sqlpp11/is_null.h | 7 ++----- include/sqlpp11/is_null_fwd.h | 7 ++----- include/sqlpp11/join.h | 7 ++----- include/sqlpp11/join_types.h | 7 ++----- include/sqlpp11/limit.h | 7 ++----- include/sqlpp11/logic.h | 7 ++----- include/sqlpp11/lower.h | 7 ++----- include/sqlpp11/mysql/bind_result.h | 6 ++---- include/sqlpp11/mysql/char_result.h | 6 ++---- include/sqlpp11/mysql/char_result_row.h | 7 ++----- include/sqlpp11/mysql/connection.h | 7 ++----- include/sqlpp11/mysql/connection_config.h | 7 ++----- include/sqlpp11/mysql/mysql.h | 7 ++----- include/sqlpp11/mysql/prepared_statement.h | 6 ++---- include/sqlpp11/mysql/remove.h | 8 ++------ include/sqlpp11/mysql/serializer.h | 7 ++----- include/sqlpp11/mysql/sqlpp_mysql.h | 7 ++----- include/sqlpp11/mysql/update.h | 8 ++------ include/sqlpp11/named_interpretable.h | 7 ++----- include/sqlpp11/no_data.h | 6 ++---- include/sqlpp11/no_name.h | 6 ++---- include/sqlpp11/noop.h | 6 ++---- include/sqlpp11/noop_fwd.h | 6 ++---- include/sqlpp11/not_in.h | 7 ++----- include/sqlpp11/null.h | 7 ++----- include/sqlpp11/offset.h | 7 ++----- include/sqlpp11/on.h | 7 ++----- include/sqlpp11/operand_check.h | 7 ++----- include/sqlpp11/order_by.h | 7 ++----- include/sqlpp11/over.h | 7 ++----- include/sqlpp11/parameter.h | 7 ++----- include/sqlpp11/parameter_list.h | 7 ++----- include/sqlpp11/parameterized_verbatim.h | 7 ++----- include/sqlpp11/policy_update.h | 7 ++----- include/sqlpp11/portable_static_assert.h | 7 ++----- include/sqlpp11/postgresql/bind_result.h | 7 ++----- include/sqlpp11/postgresql/connection.h | 7 ++----- include/sqlpp11/postgresql/connection_config.h | 7 ++----- include/sqlpp11/postgresql/detail/connection_handle.h | 7 ++----- .../sqlpp11/postgresql/detail/prepared_statement_handle.h | 7 ++----- include/sqlpp11/postgresql/dynamic_libpq.h | 7 ++----- include/sqlpp11/postgresql/exception.h | 7 ++----- include/sqlpp11/postgresql/insert.h | 7 ++----- include/sqlpp11/postgresql/on_conflict.h | 7 ++----- include/sqlpp11/postgresql/on_conflict_do_nothing.h | 7 ++----- include/sqlpp11/postgresql/on_conflict_do_update.h | 7 ++----- include/sqlpp11/postgresql/postgresql.h | 7 ++----- include/sqlpp11/postgresql/prepared_statement.h | 7 ++----- include/sqlpp11/postgresql/result.h | 7 ++----- include/sqlpp11/postgresql/result_field.h | 6 ++---- include/sqlpp11/postgresql/returning.h | 7 ++----- include/sqlpp11/postgresql/returning_column_list.h | 7 ++----- include/sqlpp11/postgresql/serializer.h | 7 ++----- include/sqlpp11/postgresql/update.h | 7 ++----- include/sqlpp11/postgresql/visibility.h | 7 ++----- include/sqlpp11/ppgen.h | 7 ++----- include/sqlpp11/ppgen/colops/auto_increment.h | 7 ++----- include/sqlpp11/ppgen/colops/blob.h | 7 ++----- include/sqlpp11/ppgen/colops/bool.h | 7 ++----- include/sqlpp11/ppgen/colops/comment.h | 7 ++----- include/sqlpp11/ppgen/colops/datetime.h | 7 ++----- include/sqlpp11/ppgen/colops/default.h | 7 ++----- include/sqlpp11/ppgen/colops/floating_point.h | 7 ++----- include/sqlpp11/ppgen/colops/foreign_key.h | 7 ++----- include/sqlpp11/ppgen/colops/index.h | 7 ++----- include/sqlpp11/ppgen/colops/integer.h | 7 ++----- include/sqlpp11/ppgen/colops/not_null.h | 7 ++----- include/sqlpp11/ppgen/colops/null.h | 7 ++----- include/sqlpp11/ppgen/colops/primary_key.h | 7 ++----- include/sqlpp11/ppgen/colops/text.h | 7 ++----- include/sqlpp11/ppgen/colops/timestamp.h | 7 ++----- include/sqlpp11/ppgen/colops/unique_index.h | 7 ++----- include/sqlpp11/ppgen/colops/unsigned_integer.h | 7 ++----- include/sqlpp11/ppgen/colops/varchar.h | 7 ++----- include/sqlpp11/ppgen/tblops/character_set.h | 7 ++----- include/sqlpp11/ppgen/tblops/comment.h | 7 ++----- include/sqlpp11/ppgen/tblops/default.h | 7 ++----- include/sqlpp11/ppgen/tblops/engine.h | 7 ++----- include/sqlpp11/ppgen/tools/wrap_seq.h | 7 ++----- include/sqlpp11/pre_join.h | 7 ++----- include/sqlpp11/prepared_execute.h | 7 ++----- include/sqlpp11/prepared_insert.h | 7 ++----- include/sqlpp11/prepared_remove.h | 7 ++----- include/sqlpp11/prepared_select.h | 7 ++----- include/sqlpp11/prepared_update.h | 7 ++----- include/sqlpp11/remove.h | 7 ++----- include/sqlpp11/result.h | 7 ++----- include/sqlpp11/result_field.h | 6 ++---- include/sqlpp11/result_field_base.h | 6 ++---- include/sqlpp11/result_row.h | 7 ++----- include/sqlpp11/result_row_fwd.h | 7 ++----- include/sqlpp11/schema.h | 7 ++----- include/sqlpp11/schema_qualified_table.h | 7 ++----- include/sqlpp11/select.h | 6 ++---- include/sqlpp11/select_column_list.h | 7 ++----- include/sqlpp11/select_flag_list.h | 7 ++----- include/sqlpp11/select_flags.h | 7 ++----- include/sqlpp11/select_pseudo_table.h | 7 ++----- include/sqlpp11/serialize.h | 7 ++----- include/sqlpp11/serializer_context.h | 7 ++----- include/sqlpp11/simple_column.h | 7 ++----- include/sqlpp11/single_table.h | 7 ++----- include/sqlpp11/some.h | 7 ++----- include/sqlpp11/sort_order.h | 7 ++----- include/sqlpp11/sqlite3/bind_result.h | 7 ++----- include/sqlpp11/sqlite3/connection.h | 7 ++----- include/sqlpp11/sqlite3/connection_config.h | 7 ++----- include/sqlpp11/sqlite3/dynamic_libsqlite3.h | 5 ++--- include/sqlpp11/sqlite3/export.h | 5 +---- include/sqlpp11/sqlite3/insert_or.h | 7 ++----- include/sqlpp11/sqlite3/prepared_statement.h | 7 ++----- include/sqlpp11/sqlite3/prepared_statement_handle.h | 7 ++----- include/sqlpp11/sqlite3/serializer.h | 7 ++----- include/sqlpp11/sqlite3/sqlite3.h | 7 ++----- include/sqlpp11/sqlpp11.h | 7 ++----- include/sqlpp11/statement.h | 7 ++----- include/sqlpp11/statement_fwd.h | 7 ++----- include/sqlpp11/table.h | 7 ++----- include/sqlpp11/table_alias.h | 7 ++----- include/sqlpp11/table_ref.h | 7 ++----- include/sqlpp11/transaction.h | 7 ++----- include/sqlpp11/trim.h | 7 ++----- include/sqlpp11/type_traits.h | 7 ++----- include/sqlpp11/unconditional.h | 6 ++---- include/sqlpp11/union.h | 7 ++----- include/sqlpp11/union_data.h | 7 ++----- include/sqlpp11/union_flags.h | 7 ++----- include/sqlpp11/update.h | 7 ++----- include/sqlpp11/update_list.h | 7 ++----- include/sqlpp11/upper.h | 7 ++----- include/sqlpp11/using.h | 7 ++----- include/sqlpp11/value.h | 7 ++----- include/sqlpp11/value_or_null.h | 7 ++----- include/sqlpp11/value_type.h | 6 ++---- include/sqlpp11/value_type_fwd.h | 7 ++----- include/sqlpp11/verbatim.h | 7 ++----- include/sqlpp11/verbatim_table.h | 7 ++----- include/sqlpp11/where.h | 7 ++----- include/sqlpp11/with.h | 7 ++----- include/sqlpp11/without_table_check.h | 5 +---- include/sqlpp11/wrap_operand.h | 7 ++----- include/sqlpp11/wrong.h | 6 ++---- scripts/ddl2cpp | 5 ++--- scripts/sqlite2cpp.py | 5 ++--- tests/core/serialize/compare.h | 7 ++----- tests/core/static_asserts/AssertTables.h | 5 ++--- tests/core/usage/MockDb.h | 7 ++----- tests/core/usage/Sample.h | 4 +--- tests/core/usage/is_regular.h | 7 ++----- tests/mysql/serialize/compare.h | 7 ++----- tests/mysql/usage/TabJson.h | 5 ++--- tests/mysql/usage/TabSample.h | 7 ++----- tests/postgresql/serialize/compare.h | 7 ++----- tests/postgresql/usage/BlobSample.h | 5 ++--- tests/postgresql/usage/TabBar.h | 5 +---- tests/postgresql/usage/TabDateTime.h | 5 +---- tests/postgresql/usage/TabFoo.h | 5 +---- tests/postgresql/usage/TabSample.h | 7 ++----- tests/postgresql/usage/assertThrow.h | 5 +---- tests/postgresql/usage/make_test_connection.h | 8 ++------ tests/sqlite3/serialize/compare.h | 7 ++----- tests/sqlite3/usage/BlobSample.h | 5 ++--- tests/sqlite3/usage/FpSample.h | 6 ++---- tests/sqlite3/usage/IntegralSample.h | 5 +---- tests/sqlite3/usage/TabSample.h | 7 ++----- 323 files changed, 638 insertions(+), 1520 deletions(-) diff --git a/connector_api/bind_result.h b/connector_api/bind_result.h index c269b925a..17df579b4 100644 --- a/connector_api/bind_result.h +++ b/connector_api/bind_result.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_DATABASE_BIND_RESULT_H -#define SQLPP_DATABASE_BIND_RESULT_H - #include namespace sqlpp @@ -88,4 +87,3 @@ namespace sqlpp }; } } -#endif diff --git a/connector_api/connection.h b/connector_api/connection.h index cb594b550..49dc75c77 100644 --- a/connector_api/connection.h +++ b/connector_api/connection.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_DATABASE_CONNECTION_H -#define SQLPP_DATABASE_CONNECTION_H - #include #include #include @@ -223,5 +222,3 @@ namespace sqlpp } // namespace sqlpp #include - -#endif diff --git a/connector_api/interpreter.h b/connector_api/interpreter.h index fd6946353..8f02da11a 100644 --- a/connector_api/interpreter.h +++ b/connector_api/interpreter.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_DATABASE_INTERPRETER_H -#define SQLPP_DATABASE_INTERPRETER_H - #include #include @@ -57,5 +56,3 @@ namespace sqlpp }; } } - -#endif diff --git a/connector_api/prepared_statement.h b/connector_api/prepared_statement.h index 7a3297889..f71961489 100644 --- a/connector_api/prepared_statement.h +++ b/connector_api/prepared_statement.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_DATABASE_PREPARED_STATEMENT_H -#define SQLPP_DATABASE_PREPARED_STATEMENT_H - #include #include @@ -56,4 +55,3 @@ namespace sqlpp }; } } -#endif diff --git a/include/sqlpp11/aggregate_function_operators.h b/include/sqlpp11/aggregate_function_operators.h index 6e92ad4c1..d090df4c6 100644 --- a/include/sqlpp11/aggregate_function_operators.h +++ b/include/sqlpp11/aggregate_function_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -23,8 +25,6 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTION_OPERATORS_H -#define SQLPP11_AGGREGATE_FUNCTION_OPERATORS_H namespace sqlpp { @@ -37,6 +37,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif - diff --git a/include/sqlpp11/aggregate_functions.h b/include/sqlpp11/aggregate_functions.h index d2904b96d..f39903e2d 100644 --- a/include/sqlpp11/aggregate_functions.h +++ b/include/sqlpp11/aggregate_functions.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,13 +26,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_H -#define SQLPP11_AGGREGATE_FUNCTIONS_H - #include #include #include #include #include - -#endif diff --git a/include/sqlpp11/aggregate_functions/avg.h b/include/sqlpp11/aggregate_functions/avg.h index b530ae350..158760eed 100644 --- a/include/sqlpp11/aggregate_functions/avg.h +++ b/include/sqlpp11/aggregate_functions/avg.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_AVG_H -#define SQLPP11_AGGREGATE_FUNCTIONS_AVG_H - #include #include @@ -115,5 +114,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/aggregate_functions/count.h b/include/sqlpp11/aggregate_functions/count.h index ea8a61312..cf77e23a2 100644 --- a/include/sqlpp11/aggregate_functions/count.h +++ b/include/sqlpp11/aggregate_functions/count.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_COUNT_H -#define SQLPP11_AGGREGATE_FUNCTIONS_COUNT_H - #include #include #include @@ -118,5 +117,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/aggregate_functions/max.h b/include/sqlpp11/aggregate_functions/max.h index 7ca55351a..b6d72273e 100644 --- a/include/sqlpp11/aggregate_functions/max.h +++ b/include/sqlpp11/aggregate_functions/max.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_MAX_H -#define SQLPP11_AGGREGATE_FUNCTIONS_MAX_H - #include #include @@ -111,5 +110,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/aggregate_functions/min.h b/include/sqlpp11/aggregate_functions/min.h index 14b8e7065..d3bb8250a 100644 --- a/include/sqlpp11/aggregate_functions/min.h +++ b/include/sqlpp11/aggregate_functions/min.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_MIN_H -#define SQLPP11_AGGREGATE_FUNCTIONS_MIN_H - #include #include @@ -111,5 +110,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/aggregate_functions/sum.h b/include/sqlpp11/aggregate_functions/sum.h index 5511ca338..05f5866ee 100644 --- a/include/sqlpp11/aggregate_functions/sum.h +++ b/include/sqlpp11/aggregate_functions/sum.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_SUM_H -#define SQLPP11_AGGREGATE_FUNCTIONS_SUM_H - #include #include @@ -115,5 +114,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/alias.h b/include/sqlpp11/alias.h index 328ce5b99..e0df5ba8b 100644 --- a/include/sqlpp11/alias.h +++ b/include/sqlpp11/alias.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ALIAS_H -#define SQLPP11_ALIAS_H - #include namespace sqlpp @@ -64,5 +63,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/alias_operators.h b/include/sqlpp11/alias_operators.h index da318f19f..023a4ec6c 100644 --- a/include/sqlpp11/alias_operators.h +++ b/include/sqlpp11/alias_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ALIAS_OPERATORS_H -#define SQLPP11_ALIAS_OPERATORS_H - #include namespace sqlpp @@ -41,4 +40,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/alias_provider.h b/include/sqlpp11/alias_provider.h index 7982193a3..d3e2535f1 100644 --- a/include/sqlpp11/alias_provider.h +++ b/include/sqlpp11/alias_provider.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ALIAS_PROVIDER_H -#define SQLPP11_ALIAS_PROVIDER_H - #include #include @@ -126,5 +125,3 @@ namespace sqlpp SQLPP_ALIAS_PROVIDER(right) } // namespace alias } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/all_of.h b/include/sqlpp11/all_of.h index 373792f05..61dec8147 100644 --- a/include/sqlpp11/all_of.h +++ b/include/sqlpp11/all_of.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2021, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ALL_OF_H -#define SQLPP11_ALL_OF_H - namespace sqlpp { template @@ -35,5 +34,3 @@ namespace sqlpp return {}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/any.h b/include/sqlpp11/any.h index 0535f6448..e7ee88e8d 100644 --- a/include/sqlpp11/any.h +++ b/include/sqlpp11/any.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ANY_H -#define SQLPP11_ANY_H - #include #include #include @@ -70,5 +69,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/assignment.h b/include/sqlpp11/assignment.h index 469acd965..5fc5872d9 100644 --- a/include/sqlpp11/assignment.h +++ b/include/sqlpp11/assignment.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ASSIGNMENT_H -#define SQLPP11_ASSIGNMENT_H - #include #include #include @@ -69,5 +68,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/auto_alias.h b/include/sqlpp11/auto_alias.h index f54628c59..831ea3874 100644 --- a/include/sqlpp11/auto_alias.h +++ b/include/sqlpp11/auto_alias.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AUTO_ALIAS_H -#define SQLPP11_AUTO_ALIAS_H - #include namespace sqlpp @@ -61,5 +60,3 @@ namespace sqlpp template using auto_alias_t = typename detail::auto_alias_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/bad_expression.h b/include/sqlpp11/bad_expression.h index 97aaca9d7..7e0a88fe4 100644 --- a/include/sqlpp11/bad_expression.h +++ b/include/sqlpp11/bad_expression.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_BAD_EXPRESSION_H -#define SQLPP11_BAD_EXPRESSION_H - #include #include @@ -48,5 +47,3 @@ namespace sqlpp template Context serialize(const bad_expression& t, Context& context); } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/basic_expression_operators.h b/include/sqlpp11/basic_expression_operators.h index 637d807df..27e56a718 100644 --- a/include/sqlpp11/basic_expression_operators.h +++ b/include/sqlpp11/basic_expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * Copyright (c) 2016, Aaron Bishop @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_BASIC_EXPRESSION_OPERATORS_H -#define SQLPP11_BASIC_EXPRESSION_OPERATORS_H - #include #include #include @@ -315,5 +314,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/boolean_expression.h b/include/sqlpp11/boolean_expression.h index d45807105..f8f4de991 100644 --- a/include/sqlpp11/boolean_expression.h +++ b/include/sqlpp11/boolean_expression.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_BOOLEAN_EXPRESSION_H -#define SQLPP11_BOOLEAN_EXPRESSION_H - #include #include @@ -73,5 +72,3 @@ namespace sqlpp return serialize(t._expr, context); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/case.h b/include/sqlpp11/case.h index 12b0e2aef..d9f83ee2c 100644 --- a/include/sqlpp11/case.h +++ b/include/sqlpp11/case.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CASE_H -#define SQLPP11_CASE_H - #include #include #include @@ -181,5 +180,3 @@ namespace sqlpp return detail::case_when_impl(check_case_when_t{}, when); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/char_sequence.h b/include/sqlpp11/char_sequence.h index 2e6b51c8c..2b6034c44 100644 --- a/include/sqlpp11/char_sequence.h +++ b/include/sqlpp11/char_sequence.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CHAR_SEQUENCE_H -#define SQLPP11_CHAR_SEQUENCE_H - #include #include @@ -75,5 +74,3 @@ namespace sqlpp typename make_char_sequence_impl>::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/chrono.h b/include/sqlpp11/chrono.h index 8ad241427..16c6f1590 100644 --- a/include/sqlpp11/chrono.h +++ b/include/sqlpp11/chrono.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CHRONO_H -#define SQLPP11_CHRONO_H - #include namespace sqlpp @@ -53,5 +52,3 @@ namespace sqlpp } } // namespace chrono } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/column.h b/include/sqlpp11/column.h index 7b347ad77..ee487724f 100644 --- a/include/sqlpp11/column.h +++ b/include/sqlpp11/column.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_COLUMN_H -#define SQLPP11_COLUMN_H - #include #include #include @@ -118,5 +117,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/column_fwd.h b/include/sqlpp11/column_fwd.h index 68f025cad..bda6c6d2a 100644 --- a/include/sqlpp11/column_fwd.h +++ b/include/sqlpp11/column_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,13 +26,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_COLUMN_FWD_H -#define SQLPP11_COLUMN_FWD_H - namespace sqlpp { template struct column_t; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/column_types.h b/include/sqlpp11/column_types.h index ed779981d..ccd7a1303 100644 --- a/include/sqlpp11/column_types.h +++ b/include/sqlpp11/column_types.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,4 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_COLUMN_TYPES_H -#define SQLPP_COLUMN_TYPES_H - #include - -#endif diff --git a/include/sqlpp11/connection.h b/include/sqlpp11/connection.h index f870fc471..2291c2ea4 100644 --- a/include/sqlpp11/connection.h +++ b/include/sqlpp11/connection.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CONNECTION_H -#define SQLPP11_CONNECTION_H - #include #include @@ -156,5 +155,3 @@ namespace sqlpp } } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/consistent.h b/include/sqlpp11/consistent.h index a83db6330..e55c20c82 100644 --- a/include/sqlpp11/consistent.h +++ b/include/sqlpp11/consistent.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CONSISTENT_H -#define SQLPP11_CONSISTENT_H - #include namespace sqlpp @@ -39,5 +38,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/cte.h b/include/sqlpp11/cte.h index 2fd4a9d4d..e151e8ed6 100644 --- a/include/sqlpp11/cte.h +++ b/include/sqlpp11/cte.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CTE_H -#define SQLPP11_CTE_H - #include #include #include @@ -274,5 +273,3 @@ namespace sqlpp return {}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/custom_query.h b/include/sqlpp11/custom_query.h index 1f217b15c..419c7e804 100644 --- a/include/sqlpp11/custom_query.h +++ b/include/sqlpp11/custom_query.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CUSTOM_QUERY_H -#define SQLPP11_CUSTOM_QUERY_H - #include #include #include @@ -146,4 +145,3 @@ namespace sqlpp return custom_query_t...>(parts...); } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types.h b/include/sqlpp11/data_types.h index b447a2143..feae0446c 100644 --- a/include/sqlpp11/data_types.h +++ b/include/sqlpp11/data_types.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_H -#define SQLPP11_DATA_TYPES_H - #include #include #include @@ -37,5 +36,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/blob.h b/include/sqlpp11/data_types/blob.h index 3196dd31d..3998491f6 100644 --- a/include/sqlpp11/data_types/blob.h +++ b/include/sqlpp11/data_types/blob.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_H -#define SQLPP_BLOB_H - #include #include #include @@ -38,5 +37,3 @@ // blob specific functions #include #include - -#endif diff --git a/include/sqlpp11/data_types/blob/column_operators.h b/include/sqlpp11/data_types/blob/column_operators.h index f2652c36d..54fa7d34e 100644 --- a/include/sqlpp11/data_types/blob/column_operators.h +++ b/include/sqlpp11/data_types/blob/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_COLUMN_OPERATORS_H -#define SQLPP_BLOB_COLUMN_OPERATORS_H - #include #include #include @@ -54,4 +53,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/data_type.h b/include/sqlpp11/data_types/blob/data_type.h index 2758a7616..04d3ab98e 100644 --- a/include/sqlpp11/data_types/blob/data_type.h +++ b/include/sqlpp11/data_types/blob/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_DATA_TYPE_H -#define SQLPP_BLOB_DATA_TYPE_H - #include #include @@ -47,4 +46,3 @@ namespace sqlpp using blob = blob; using mediumblob = blob; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/expression_operators.h b/include/sqlpp11/data_types/blob/expression_operators.h index 210c57f60..da1d27675 100644 --- a/include/sqlpp11/data_types/blob/expression_operators.h +++ b/include/sqlpp11/data_types/blob/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_EXPRESSION_OPERATORS_H -#define SQLPP_BLOB_EXPRESSION_OPERATORS_H - #include #include #include @@ -67,4 +66,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/operand.h b/include/sqlpp11/data_types/blob/operand.h index 5f95e0017..5bd0cdecb 100644 --- a/include/sqlpp11/data_types/blob/operand.h +++ b/include/sqlpp11/data_types/blob/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_OPERAND_H -#define SQLPP_BLOB_OPERAND_H - #include #include #include @@ -79,4 +78,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/parameter_value.h b/include/sqlpp11/data_types/blob/parameter_value.h index f36cd311a..036de3d73 100644 --- a/include/sqlpp11/data_types/blob/parameter_value.h +++ b/include/sqlpp11/data_types/blob/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_PARAMETER_VALUE_H -#define SQLPP_BLOB_PARAMETER_VALUE_H - #include #include #include @@ -49,4 +48,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/result_field.h b/include/sqlpp11/data_types/blob/result_field.h index 6839fc589..9e911a996 100644 --- a/include/sqlpp11/data_types/blob/result_field.h +++ b/include/sqlpp11/data_types/blob/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_RESULT_FIELD_H -#define SQLPP_BLOB_RESULT_FIELD_H - #include #include #include @@ -83,4 +82,3 @@ namespace sqlpp } } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/wrap_operand.h b/include/sqlpp11/data_types/blob/wrap_operand.h index cdfd8c92d..a0fd7934c 100644 --- a/include/sqlpp11/data_types/blob/wrap_operand.h +++ b/include/sqlpp11/data_types/blob/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_WRAP_OPERAND_H -#define SQLPP_BLOB_WRAP_OPERAND_H - #include #include #include @@ -48,4 +47,3 @@ namespace sqlpp using type = blob_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/boolean.h b/include/sqlpp11/data_types/boolean.h index 67b5aa2e6..794f21569 100644 --- a/include/sqlpp11/data_types/boolean.h +++ b/include/sqlpp11/data_types/boolean.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_H -#define SQLPP11_DATA_TYPES_BOOLEAN_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/boolean/column_operators.h b/include/sqlpp11/data_types/boolean/column_operators.h index 3175a6760..52e294f17 100644 --- a/include/sqlpp11/data_types/boolean/column_operators.h +++ b/include/sqlpp11/data_types/boolean/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_BOOLEAN_COLUMN_OPERATORS_H - #include namespace sqlpp @@ -38,4 +37,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/boolean/data_type.h b/include/sqlpp11/data_types/boolean/data_type.h index dc8929db8..5414c6f72 100644 --- a/include/sqlpp11/data_types/boolean/data_type.h +++ b/include/sqlpp11/data_types/boolean/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_BOOLEAN_DATA_TYPE_H - #include namespace sqlpp @@ -42,5 +41,3 @@ namespace sqlpp using bit = sqlpp::boolean; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/boolean/expression_operators.h b/include/sqlpp11/data_types/boolean/expression_operators.h index 246f56a0d..068931543 100644 --- a/include/sqlpp11/data_types/boolean/expression_operators.h +++ b/include/sqlpp11/data_types/boolean/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_BOOLEAN_EXPRESSION_OPERATORS_H - #include #include #include @@ -60,5 +59,3 @@ namespace sqlpp using type = logical_not_t>; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/boolean/operand.h b/include/sqlpp11/data_types/boolean/operand.h index 0aa852a91..b22c78209 100644 --- a/include/sqlpp11/data_types/boolean/operand.h +++ b/include/sqlpp11/data_types/boolean/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_OPERAND_H -#define SQLPP11_DATA_TYPES_BOOLEAN_OPERAND_H - #include // Required for some compilers to use aliases for boolean operators #include @@ -68,5 +67,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/boolean/parameter_value.h b/include/sqlpp11/data_types/boolean/parameter_value.h index 0e854abeb..60436f168 100644 --- a/include/sqlpp11/data_types/boolean/parameter_value.h +++ b/include/sqlpp11/data_types/boolean/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_BOOLEAN_PARAMETER_VALUE_H - #include #include #include @@ -47,5 +46,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/boolean/result_field.h b/include/sqlpp11/data_types/boolean/result_field.h index 6b4586ce3..051781016 100644 --- a/include/sqlpp11/data_types/boolean/result_field.h +++ b/include/sqlpp11/data_types/boolean/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_BOOLEAN_RESULT_FIELD_H - #include #include #include @@ -52,5 +51,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/boolean/wrap_operand.h b/include/sqlpp11/data_types/boolean/wrap_operand.h index 3b66b452c..918927f20 100644 --- a/include/sqlpp11/data_types/boolean/wrap_operand.h +++ b/include/sqlpp11/data_types/boolean/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_BOOLEAN_WRAP_OPERAND_H - #include namespace sqlpp @@ -39,5 +38,3 @@ namespace sqlpp using type = boolean_operand; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/column_operators.h b/include/sqlpp11/data_types/column_operators.h index 1273c465a..5db03d876 100644 --- a/include/sqlpp11/data_types/column_operators.h +++ b/include/sqlpp11/data_types/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_COLUMN_OPERATORS_H - #include namespace sqlpp @@ -37,5 +36,3 @@ namespace sqlpp static_assert(wrong_t::value, "Missing column operators for ValueType"); }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/day_point.h b/include/sqlpp11/data_types/day_point.h index 7818e2c6c..00aa96d5f 100644 --- a/include/sqlpp11/data_types/day_point.h +++ b/include/sqlpp11/data_types/day_point.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_H -#define SQLPP11_DATA_TYPES_DAY_POINT_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/day_point/column_operators.h b/include/sqlpp11/data_types/day_point/column_operators.h index ea1fda0a4..2219e3317 100644 --- a/include/sqlpp11/data_types/day_point/column_operators.h +++ b/include/sqlpp11/data_types/day_point/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_DAY_POINT_COLUMN_OPERATORS_H - #include #include #include @@ -41,4 +40,3 @@ namespace sqlpp using _is_valid_operand = is_valid_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/data_type.h b/include/sqlpp11/data_types/day_point/data_type.h index 0cddf09c4..f342f3955 100644 --- a/include/sqlpp11/data_types/day_point/data_type.h +++ b/include/sqlpp11/data_types/day_point/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_DAY_POINT_DATA_TYPE_H - #include #include @@ -45,4 +44,3 @@ namespace sqlpp using date = day_point; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/expression_operators.h b/include/sqlpp11/data_types/day_point/expression_operators.h index 2ff20718c..33b6bb2ac 100644 --- a/include/sqlpp11/data_types/day_point/expression_operators.h +++ b/include/sqlpp11/data_types/day_point/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_DAY_POINT_EXPRESSION_OPERATORS_H - #include #include #include @@ -39,4 +38,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/operand.h b/include/sqlpp11/data_types/day_point/operand.h index f47438fee..0444cf085 100644 --- a/include/sqlpp11/data_types/day_point/operand.h +++ b/include/sqlpp11/data_types/day_point/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_OPERAND_H -#define SQLPP11_DATA_TYPES_DAY_POINT_OPERAND_H - #include #include #include @@ -67,4 +66,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/parameter_value.h b/include/sqlpp11/data_types/day_point/parameter_value.h index 05077a11f..4e7120af4 100644 --- a/include/sqlpp11/data_types/day_point/parameter_value.h +++ b/include/sqlpp11/data_types/day_point/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_DAY_POINT_PARAMETER_VALUE_H - #include #include #include @@ -49,4 +48,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/result_field.h b/include/sqlpp11/data_types/day_point/result_field.h index ad60b02f8..d5e912586 100644 --- a/include/sqlpp11/data_types/day_point/result_field.h +++ b/include/sqlpp11/data_types/day_point/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_DAY_POINT_RESULT_FIELD_H - #include #include #include @@ -69,4 +68,3 @@ namespace sqlpp return os; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/wrap_operand.h b/include/sqlpp11/data_types/day_point/wrap_operand.h index 7e4f61c40..ead6d6998 100644 --- a/include/sqlpp11/data_types/day_point/wrap_operand.h +++ b/include/sqlpp11/data_types/day_point/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_DAY_POINT_WRAP_OPERAND_H - #include #include #include @@ -42,4 +41,3 @@ namespace sqlpp using type = day_point_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point.h b/include/sqlpp11/data_types/floating_point.h index 07ea8ae5e..b01ff5776 100644 --- a/include/sqlpp11/data_types/floating_point.h +++ b/include/sqlpp11/data_types/floating_point.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/floating_point/column_operators.h b/include/sqlpp11/data_types/floating_point/column_operators.h index 1949da6e9..944ce0371 100644 --- a/include/sqlpp11/data_types/floating_point/column_operators.h +++ b/include/sqlpp11/data_types/floating_point/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_COLUMN_OPERATORS_H - #include #include #include @@ -77,4 +76,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/data_type.h b/include/sqlpp11/data_types/floating_point/data_type.h index daacd3582..7ad5d23de 100644 --- a/include/sqlpp11/data_types/floating_point/data_type.h +++ b/include/sqlpp11/data_types/floating_point/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_DATA_TYPE_H - #include namespace sqlpp @@ -40,4 +39,3 @@ namespace sqlpp using _is_valid_operand = is_numeric_t; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/expression_operators.h b/include/sqlpp11/data_types/floating_point/expression_operators.h index 063cf6e37..65a615ee4 100644 --- a/include/sqlpp11/data_types/floating_point/expression_operators.h +++ b/include/sqlpp11/data_types/floating_point/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_EXPRESSION_OPERATORS_H - #include #include #include @@ -83,4 +82,3 @@ namespace sqlpp using type = unary_minus_t>; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/operand.h b/include/sqlpp11/data_types/floating_point/operand.h index 44ee44ba1..edc87109c 100644 --- a/include/sqlpp11/data_types/floating_point/operand.h +++ b/include/sqlpp11/data_types/floating_point/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_OPERAND_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_OPERAND_H - #include #include @@ -64,4 +63,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/parameter_value.h b/include/sqlpp11/data_types/floating_point/parameter_value.h index beec2d37b..4209db480 100644 --- a/include/sqlpp11/data_types/floating_point/parameter_value.h +++ b/include/sqlpp11/data_types/floating_point/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_PARAMETER_VALUE_H - #include #include #include @@ -49,4 +48,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/result_field.h b/include/sqlpp11/data_types/floating_point/result_field.h index 4a267919f..3ca41a5c2 100644 --- a/include/sqlpp11/data_types/floating_point/result_field.h +++ b/include/sqlpp11/data_types/floating_point/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_RESULT_FIELD_H - #include #include #include @@ -53,4 +52,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/wrap_operand.h b/include/sqlpp11/data_types/floating_point/wrap_operand.h index 3d79b1609..88a007fca 100644 --- a/include/sqlpp11/data_types/floating_point/wrap_operand.h +++ b/include/sqlpp11/data_types/floating_point/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_WRAP_OPERAND_H - #include #include @@ -40,4 +39,3 @@ namespace sqlpp using type = floating_point_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/integral.h b/include/sqlpp11/data_types/integral.h index 848df2b0c..b6117ee92 100644 --- a/include/sqlpp11/data_types/integral.h +++ b/include/sqlpp11/data_types/integral.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_H -#define SQLPP11_DATA_TYPES_INTEGRAL_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/integral/column_operators.h b/include/sqlpp11/data_types/integral/column_operators.h index 9b017fb15..e3c5d2ab6 100644 --- a/include/sqlpp11/data_types/integral/column_operators.h +++ b/include/sqlpp11/data_types/integral/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_INTEGRAL_COLUMN_OPERATORS_H - #include #include #include @@ -78,5 +77,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/integral/data_type.h b/include/sqlpp11/data_types/integral/data_type.h index 957f84282..851982349 100644 --- a/include/sqlpp11/data_types/integral/data_type.h +++ b/include/sqlpp11/data_types/integral/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_INTEGRAL_DATA_TYPE_H - #include namespace sqlpp @@ -45,4 +44,3 @@ namespace sqlpp using integer = integral; using bigint = integral; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/integral/expression_operators.h b/include/sqlpp11/data_types/integral/expression_operators.h index b8cd39a9a..b0393f945 100644 --- a/include/sqlpp11/data_types/integral/expression_operators.h +++ b/include/sqlpp11/data_types/integral/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_INTEGRAL_EXPRESSION_OPERATORS_H - #include #include #include @@ -147,4 +146,3 @@ namespace sqlpp using type = shift_right_t, integral, wrap_operand_t>; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/integral/operand.h b/include/sqlpp11/data_types/integral/operand.h index 997342a80..9a615b02f 100644 --- a/include/sqlpp11/data_types/integral/operand.h +++ b/include/sqlpp11/data_types/integral/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_OPERAND_H -#define SQLPP11_DATA_TYPES_INTEGRAL_OPERAND_H - #include #include @@ -66,5 +65,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/integral/parameter_value.h b/include/sqlpp11/data_types/integral/parameter_value.h index 244de2474..a1125b3ea 100644 --- a/include/sqlpp11/data_types/integral/parameter_value.h +++ b/include/sqlpp11/data_types/integral/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_INTEGRAL_PARAMETER_VALUE_H - #include #include #include @@ -47,4 +46,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/integral/result_field.h b/include/sqlpp11/data_types/integral/result_field.h index e8051655a..cdd3bae1e 100644 --- a/include/sqlpp11/data_types/integral/result_field.h +++ b/include/sqlpp11/data_types/integral/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_INTEGRAL_RESULT_FIELD_H - #include #include #include @@ -52,4 +51,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/integral/wrap_operand.h b/include/sqlpp11/data_types/integral/wrap_operand.h index 7be263e27..ffdf46abc 100644 --- a/include/sqlpp11/data_types/integral/wrap_operand.h +++ b/include/sqlpp11/data_types/integral/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_INTEGRAL_WRAP_OPERAND_H - #include #include @@ -42,4 +41,3 @@ namespace sqlpp using type = integral_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/no_value.h b/include/sqlpp11/data_types/no_value.h index 55f454e01..173345403 100644 --- a/include/sqlpp11/data_types/no_value.h +++ b/include/sqlpp11/data_types/no_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_H -#define SQLPP11_DATA_TYPES_NO_VALUE_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/no_value/column_operators.h b/include/sqlpp11/data_types/no_value/column_operators.h index 10cf4ff82..8af777fd4 100644 --- a/include/sqlpp11/data_types/no_value/column_operators.h +++ b/include/sqlpp11/data_types/no_value/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_NO_VALUE_COLUMN_OPERATORS_H - #include namespace sqlpp @@ -38,4 +37,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/no_value/data_type.h b/include/sqlpp11/data_types/no_value/data_type.h index 8deb6bed9..601f04421 100644 --- a/include/sqlpp11/data_types/no_value/data_type.h +++ b/include/sqlpp11/data_types/no_value/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_NO_VALUE_DATA_TYPE_H - #include namespace sqlpp @@ -40,5 +39,3 @@ namespace sqlpp using _is_valid_operand = wrong_t; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/no_value/expression_operators.h b/include/sqlpp11/data_types/no_value/expression_operators.h index ffd1552ad..6e94dc40b 100644 --- a/include/sqlpp11/data_types/no_value/expression_operators.h +++ b/include/sqlpp11/data_types/no_value/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_NO_VALUE_EXPRESSION_OPERATORS_H - #include #include #include @@ -38,5 +37,3 @@ namespace sqlpp { }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/no_value/operand.h b/include/sqlpp11/data_types/no_value/operand.h index 625e40d8b..bb44b6128 100644 --- a/include/sqlpp11/data_types/no_value/operand.h +++ b/include/sqlpp11/data_types/no_value/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,8 +25,3 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_OPERAND_H -#define SQLPP11_DATA_TYPES_NO_VALUE_OPERAND_H - -#endif diff --git a/include/sqlpp11/data_types/no_value/parameter_value.h b/include/sqlpp11/data_types/no_value/parameter_value.h index 8c8f9916c..bb44b6128 100644 --- a/include/sqlpp11/data_types/no_value/parameter_value.h +++ b/include/sqlpp11/data_types/no_value/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,8 +25,3 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_NO_VALUE_PARAMETER_VALUE_H - -#endif diff --git a/include/sqlpp11/data_types/no_value/result_field.h b/include/sqlpp11/data_types/no_value/result_field.h index 8c677a153..f0783d836 100644 --- a/include/sqlpp11/data_types/no_value/result_field.h +++ b/include/sqlpp11/data_types/no_value/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_NO_VALUE_RESULT_FIELD_H - #include #include #include @@ -69,5 +68,3 @@ namespace sqlpp return os; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/no_value/wrap_operand.h b/include/sqlpp11/data_types/no_value/wrap_operand.h index 3814d04e3..bb44b6128 100644 --- a/include/sqlpp11/data_types/no_value/wrap_operand.h +++ b/include/sqlpp11/data_types/no_value/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,8 +25,3 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_NO_VALUE_WRAP_OPERAND_H - -#endif diff --git a/include/sqlpp11/data_types/parameter_value.h b/include/sqlpp11/data_types/parameter_value.h index c5841f75d..e8d2f0e2b 100644 --- a/include/sqlpp11/data_types/parameter_value.h +++ b/include/sqlpp11/data_types/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_PARAMETER_VALUE_H - #include namespace sqlpp @@ -37,5 +36,3 @@ namespace sqlpp static_assert(wrong_t::value, "Missing parameter value type for ValueType"); }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/parameter_value_base.h b/include/sqlpp11/data_types/parameter_value_base.h index 1e45388eb..ae688eb05 100644 --- a/include/sqlpp11/data_types/parameter_value_base.h +++ b/include/sqlpp11/data_types/parameter_value_base.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_PARAMETER_VALUE_BASE_H -#define SQLPP11_DATA_TYPES_PARAMETER_VALUE_BASE_H - #include #include @@ -90,4 +89,3 @@ namespace sqlpp bool _is_null; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text.h b/include/sqlpp11/data_types/text.h index 1d3d0df62..5824ac656 100644 --- a/include/sqlpp11/data_types/text.h +++ b/include/sqlpp11/data_types/text.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_H -#define SQLPP11_DATA_TYPES_TEXT_H - #include #include #include @@ -38,5 +37,3 @@ // text specific functions #include #include - -#endif diff --git a/include/sqlpp11/data_types/text/column_operators.h b/include/sqlpp11/data_types/text/column_operators.h index 8e1f76504..d6e29f9df 100644 --- a/include/sqlpp11/data_types/text/column_operators.h +++ b/include/sqlpp11/data_types/text/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_TEXT_COLUMN_OPERATORS_H - #include #include #include @@ -54,4 +53,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/concat.h b/include/sqlpp11/data_types/text/concat.h index f488f12bd..4dc1b5f8b 100644 --- a/include/sqlpp11/data_types/text/concat.h +++ b/include/sqlpp11/data_types/text/concat.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_CONCAT_H -#define SQLPP11_DATA_TYPES_TEXT_CONCAT_H - #include #include #include @@ -93,5 +92,3 @@ namespace sqlpp return {args...}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/text/data_type.h b/include/sqlpp11/data_types/text/data_type.h index de8fc0e18..6504b23cf 100644 --- a/include/sqlpp11/data_types/text/data_type.h +++ b/include/sqlpp11/data_types/text/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_TEXT_DATA_TYPE_H - #include namespace sqlpp @@ -45,4 +44,3 @@ namespace sqlpp using binary = text; using varbinary = text; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/expression_operators.h b/include/sqlpp11/data_types/text/expression_operators.h index 7355af9a2..08f40880c 100644 --- a/include/sqlpp11/data_types/text/expression_operators.h +++ b/include/sqlpp11/data_types/text/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_TEXT_EXPRESSION_OPERATORS_H - #include #include #include @@ -69,4 +68,3 @@ namespace sqlpp using type = concat_t, wrap_operand_t>; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/like.h b/include/sqlpp11/data_types/text/like.h index fc7e57103..e957c2b6d 100644 --- a/include/sqlpp11/data_types/text/like.h +++ b/include/sqlpp11/data_types/text/like.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_LIKE_H -#define SQLPP11_DATA_TYPES_TEXT_LIKE_H - #include #include #include @@ -88,5 +87,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/text/operand.h b/include/sqlpp11/data_types/text/operand.h index 5a2d02e7f..691307d00 100644 --- a/include/sqlpp11/data_types/text/operand.h +++ b/include/sqlpp11/data_types/text/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_OPERAND_H -#define SQLPP11_DATA_TYPES_TEXT_OPERAND_H - #include #include #if __cplusplus >= 201703L @@ -79,4 +78,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/parameter_value.h b/include/sqlpp11/data_types/text/parameter_value.h index 087bdda86..52fdeeaa0 100644 --- a/include/sqlpp11/data_types/text/parameter_value.h +++ b/include/sqlpp11/data_types/text/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_TEXT_PARAMETER_VALUE_H - #include #include #include @@ -69,4 +68,3 @@ namespace sqlpp #endif }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/result_field.h b/include/sqlpp11/data_types/text/result_field.h index 01a3d0f5e..e97c9be59 100644 --- a/include/sqlpp11/data_types/text/result_field.h +++ b/include/sqlpp11/data_types/text/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_TEXT_RESULT_FIELD_H - #include #include #include @@ -86,4 +85,3 @@ namespace sqlpp return os << e.value(); } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/return_type_like.h b/include/sqlpp11/data_types/text/return_type_like.h index 087e2ca55..dab76a705 100644 --- a/include/sqlpp11/data_types/text/return_type_like.h +++ b/include/sqlpp11/data_types/text/return_type_like.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_RETURN_TYPE_LIKE_H -#define SQLPP_RETURN_TYPE_LIKE_H - #include namespace sqlpp @@ -40,5 +39,3 @@ namespace sqlpp template using return_type_like_t = typename return_type_like::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/text/wrap_operand.h b/include/sqlpp11/data_types/text/wrap_operand.h index 7a8f8a9f9..00ea3bc9f 100644 --- a/include/sqlpp11/data_types/text/wrap_operand.h +++ b/include/sqlpp11/data_types/text/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_TEXT_WRAP_OPERAND_H - #include #if __cplusplus >= 201703L #include @@ -52,4 +51,3 @@ namespace sqlpp using type = text_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day.h b/include/sqlpp11/data_types/time_of_day.h index 62d7d2cdf..d979197d7 100644 --- a/include/sqlpp11/data_types/time_of_day.h +++ b/include/sqlpp11/data_types/time_of_day.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/time_of_day/column_operators.h b/include/sqlpp11/data_types/time_of_day/column_operators.h index f0e9f0239..22197ed48 100644 --- a/include/sqlpp11/data_types/time_of_day/column_operators.h +++ b/include/sqlpp11/data_types/time_of_day/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_COLUMN_OPERATORS_H - #include #include #include @@ -41,4 +40,3 @@ namespace sqlpp using _is_valid_operand = is_valid_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/data_type.h b/include/sqlpp11/data_types/time_of_day/data_type.h index 968814468..c132b8a8c 100644 --- a/include/sqlpp11/data_types/time_of_day/data_type.h +++ b/include/sqlpp11/data_types/time_of_day/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_DATA_TYPE_H - #include #include @@ -41,4 +40,3 @@ namespace sqlpp using _is_valid_operand = is_time_of_day_t; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/expression_operators.h b/include/sqlpp11/data_types/time_of_day/expression_operators.h index 388ae1d84..d596d4b6e 100644 --- a/include/sqlpp11/data_types/time_of_day/expression_operators.h +++ b/include/sqlpp11/data_types/time_of_day/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_EXPRESSION_OPERATORS_H - #include #include #include @@ -40,4 +39,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/operand.h b/include/sqlpp11/data_types/time_of_day/operand.h index 9458aa664..d4926884c 100644 --- a/include/sqlpp11/data_types/time_of_day/operand.h +++ b/include/sqlpp11/data_types/time_of_day/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_OPERAND_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_OPERAND_H - #include #include #include @@ -68,4 +67,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/parameter_value.h b/include/sqlpp11/data_types/time_of_day/parameter_value.h index b7a0e8c14..8a6857501 100644 --- a/include/sqlpp11/data_types/time_of_day/parameter_value.h +++ b/include/sqlpp11/data_types/time_of_day/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_PARAMETER_VALUE_H - #include #include #include @@ -49,4 +48,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/result_field.h b/include/sqlpp11/data_types/time_of_day/result_field.h index fe659ff43..d3ca4e51a 100644 --- a/include/sqlpp11/data_types/time_of_day/result_field.h +++ b/include/sqlpp11/data_types/time_of_day/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_RESULT_FIELD_H - #include #include #include @@ -69,4 +68,3 @@ namespace sqlpp return os; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/wrap_operand.h b/include/sqlpp11/data_types/time_of_day/wrap_operand.h index b4faf20c0..9341f9a88 100644 --- a/include/sqlpp11/data_types/time_of_day/wrap_operand.h +++ b/include/sqlpp11/data_types/time_of_day/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_WRAP_OPERAND_H - #include #include @@ -38,4 +37,3 @@ namespace sqlpp using type = time_of_day_operand>; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point.h b/include/sqlpp11/data_types/time_point.h index 85332cd08..64e5199e2 100644 --- a/include/sqlpp11/data_types/time_point.h +++ b/include/sqlpp11/data_types/time_point.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_H -#define SQLPP11_DATA_TYPES_TIME_POINT_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/time_point/column_operators.h b/include/sqlpp11/data_types/time_point/column_operators.h index 96896a305..4bc7c042c 100644 --- a/include/sqlpp11/data_types/time_point/column_operators.h +++ b/include/sqlpp11/data_types/time_point/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_TIME_POINT_COLUMN_OPERATORS_H - #include #include #include @@ -41,4 +40,3 @@ namespace sqlpp using _is_valid_operand = is_valid_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/data_type.h b/include/sqlpp11/data_types/time_point/data_type.h index 6021b2225..6c54a68e7 100644 --- a/include/sqlpp11/data_types/time_point/data_type.h +++ b/include/sqlpp11/data_types/time_point/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_TIME_POINT_DATA_TYPE_H - #include #include @@ -41,4 +40,3 @@ namespace sqlpp using _is_valid_operand = is_day_or_time_point_t; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/expression_operators.h b/include/sqlpp11/data_types/time_point/expression_operators.h index 5e4c0b4a2..e82c59ac7 100644 --- a/include/sqlpp11/data_types/time_point/expression_operators.h +++ b/include/sqlpp11/data_types/time_point/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_TIME_POINT_EXPRESSION_OPERATORS_H - #include #include #include @@ -40,4 +39,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/operand.h b/include/sqlpp11/data_types/time_point/operand.h index dff773688..e8a2e0338 100644 --- a/include/sqlpp11/data_types/time_point/operand.h +++ b/include/sqlpp11/data_types/time_point/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_OPERAND_H -#define SQLPP11_DATA_TYPES_TIME_POINT_OPERAND_H - #include #include #include @@ -71,4 +70,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/parameter_value.h b/include/sqlpp11/data_types/time_point/parameter_value.h index e2ed62f69..f68cd610e 100644 --- a/include/sqlpp11/data_types/time_point/parameter_value.h +++ b/include/sqlpp11/data_types/time_point/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_TIME_POINT_PARAMETER_VALUE_H - #include #include #include @@ -49,4 +48,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/result_field.h b/include/sqlpp11/data_types/time_point/result_field.h index 7bc17c6d7..238ccfb81 100644 --- a/include/sqlpp11/data_types/time_point/result_field.h +++ b/include/sqlpp11/data_types/time_point/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_TIME_POINT_RESULT_FIELD_H - #include #include #include @@ -72,4 +71,3 @@ namespace sqlpp return os; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/wrap_operand.h b/include/sqlpp11/data_types/time_point/wrap_operand.h index 7420870c7..482be771d 100644 --- a/include/sqlpp11/data_types/time_point/wrap_operand.h +++ b/include/sqlpp11/data_types/time_point/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_TIME_POINT_WRAP_OPERAND_H - #include #include @@ -38,4 +37,3 @@ namespace sqlpp using type = time_point_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral.h b/include/sqlpp11/data_types/unsigned_integral.h index 35ebddd9d..c0868610f 100644 --- a/include/sqlpp11/data_types/unsigned_integral.h +++ b/include/sqlpp11/data_types/unsigned_integral.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/column_operators.h b/include/sqlpp11/data_types/unsigned_integral/column_operators.h index ec7141216..1abb05be8 100644 --- a/include/sqlpp11/data_types/unsigned_integral/column_operators.h +++ b/include/sqlpp11/data_types/unsigned_integral/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_COLUMN_OPERATORS_H - #include #include #include @@ -78,5 +77,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/data_type.h b/include/sqlpp11/data_types/unsigned_integral/data_type.h index 84014b4d3..14527c548 100644 --- a/include/sqlpp11/data_types/unsigned_integral/data_type.h +++ b/include/sqlpp11/data_types/unsigned_integral/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_DATA_TYPE_H - #include namespace sqlpp @@ -45,4 +44,3 @@ namespace sqlpp using integer_unsigned = unsigned_integral; using bigint_unsigned = unsigned_integral; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/expression_operators.h b/include/sqlpp11/data_types/unsigned_integral/expression_operators.h index dca8529ef..c025b2c5b 100644 --- a/include/sqlpp11/data_types/unsigned_integral/expression_operators.h +++ b/include/sqlpp11/data_types/unsigned_integral/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_EXPRESSION_OPERATORS_H - #include #include #include @@ -128,4 +127,3 @@ namespace sqlpp using type = shift_right_t, unsigned_integral, wrap_operand_t>; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/operand.h b/include/sqlpp11/data_types/unsigned_integral/operand.h index e73bb7f4c..1a917bbc6 100644 --- a/include/sqlpp11/data_types/unsigned_integral/operand.h +++ b/include/sqlpp11/data_types/unsigned_integral/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_OPERAND_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_OPERAND_H - #include #include @@ -66,5 +65,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/parameter_value.h b/include/sqlpp11/data_types/unsigned_integral/parameter_value.h index c847d7280..417b8d962 100644 --- a/include/sqlpp11/data_types/unsigned_integral/parameter_value.h +++ b/include/sqlpp11/data_types/unsigned_integral/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_PARAMETER_VALUE_H - #include #include #include @@ -47,4 +46,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/result_field.h b/include/sqlpp11/data_types/unsigned_integral/result_field.h index ded6ff15b..786bc9412 100644 --- a/include/sqlpp11/data_types/unsigned_integral/result_field.h +++ b/include/sqlpp11/data_types/unsigned_integral/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_RESULT_FIELD_H - #include #include #include @@ -52,4 +51,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/wrap_operand.h b/include/sqlpp11/data_types/unsigned_integral/wrap_operand.h index 1e9dd7cb4..4c20ce09c 100644 --- a/include/sqlpp11/data_types/unsigned_integral/wrap_operand.h +++ b/include/sqlpp11/data_types/unsigned_integral/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_WRAP_OPERAND_H - #include #include @@ -42,4 +41,3 @@ namespace sqlpp using type = unsigned_integral_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/default_value.h b/include/sqlpp11/default_value.h index 9ac64144f..1f0bf70e2 100644 --- a/include/sqlpp11/default_value.h +++ b/include/sqlpp11/default_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DEFAULT_VALUE_H -#define SQLPP11_DEFAULT_VALUE_H - #include namespace sqlpp @@ -46,5 +45,3 @@ namespace sqlpp constexpr default_value_t default_value = {}; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/column_tuple_merge.h b/include/sqlpp11/detail/column_tuple_merge.h index 1851a0301..e5fab06db 100644 --- a/include/sqlpp11/detail/column_tuple_merge.h +++ b/include/sqlpp11/detail/column_tuple_merge.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2021-2021, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_COLUMN_TUPLE_MERGE_H -#define SQLPP11_COLUMN_TUPLE_MERGE_H - #include #include @@ -54,5 +53,3 @@ namespace sqlpp } } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/enable_if.h b/include/sqlpp11/detail/enable_if.h index c2c882b6e..8f6f9c371 100644 --- a/include/sqlpp11/detail/enable_if.h +++ b/include/sqlpp11/detail/enable_if.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_ENABLE_IF_H -#define SQLPP11_DETAIL_ENABLE_IF_H - #include namespace sqlpp @@ -37,5 +36,3 @@ namespace sqlpp using enable_if_t = typename std::enable_if::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/float_safe_ostringstream.h b/include/sqlpp11/detail/float_safe_ostringstream.h index 79bdfe791..26c16cad3 100644 --- a/include/sqlpp11/detail/float_safe_ostringstream.h +++ b/include/sqlpp11/detail/float_safe_ostringstream.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2023, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_COLUMN_TUPLE_FLOAT_SAFE_OSTRINGSTREAM_H -#define SQLPP11_COLUMN_TUPLE_FLOAT_SAFE_OSTRINGSTREAM_H - #include #include #include @@ -71,5 +70,3 @@ namespace sqlpp }; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/get_first.h b/include/sqlpp11/detail/get_first.h index 85466f0e7..17f59ee24 100644 --- a/include/sqlpp11/detail/get_first.h +++ b/include/sqlpp11/detail/get_first.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_GET_FIRST_H -#define SQLPP11_DETAIL_GET_FIRST_H - #include namespace sqlpp @@ -53,5 +52,3 @@ namespace sqlpp using get_first_if = typename get_first_if_impl::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/get_last.h b/include/sqlpp11/detail/get_last.h index 3d64f97c7..d94c0e555 100644 --- a/include/sqlpp11/detail/get_last.h +++ b/include/sqlpp11/detail/get_last.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_GET_LAST_H -#define SQLPP11_DETAIL_GET_LAST_H - #include namespace sqlpp @@ -53,5 +52,3 @@ namespace sqlpp using get_last_if = typename get_last_if_impl::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/index_sequence.h b/include/sqlpp11/detail/index_sequence.h index 9e9d5df3a..74bbc4fcb 100644 --- a/include/sqlpp11/detail/index_sequence.h +++ b/include/sqlpp11/detail/index_sequence.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_INDEX_SEQUENCE_H -#define SQLPP11_DETAIL_INDEX_SEQUENCE_H - #include namespace sqlpp @@ -59,5 +58,3 @@ namespace sqlpp using make_index_sequence = typename make_index_sequence_impl, N>::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/pick_arg.h b/include/sqlpp11/detail/pick_arg.h index 8df4a8b7f..495a72be3 100644 --- a/include/sqlpp11/detail/pick_arg.h +++ b/include/sqlpp11/detail/pick_arg.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_PICK_ARG_H -#define SQLPP11_DETAIL_PICK_ARG_H - #include namespace sqlpp @@ -53,5 +52,3 @@ namespace sqlpp } } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/type_set.h b/include/sqlpp11/detail/type_set.h index 343f3bcdd..fa3e427be 100644 --- a/include/sqlpp11/detail/type_set.h +++ b/include/sqlpp11/detail/type_set.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_TYPE_SET_H -#define SQLPP11_DETAIL_TYPE_SET_H - #include #include #include @@ -277,5 +276,3 @@ namespace sqlpp using make_name_of_set_t = typename make_name_of_set::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/type_vector.h b/include/sqlpp11/detail/type_vector.h index 06cb4ba18..bb89b3b30 100644 --- a/include/sqlpp11/detail/type_vector.h +++ b/include/sqlpp11/detail/type_vector.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_TYPE_VECTOR_H -#define SQLPP11_DETAIL_TYPE_VECTOR_H - #include namespace sqlpp @@ -85,5 +84,3 @@ namespace sqlpp }; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/void.h b/include/sqlpp11/detail/void.h index aa7d326d7..3b310b8f4 100644 --- a/include/sqlpp11/detail/void.h +++ b/include/sqlpp11/detail/void.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_VOID_H -#define SQLPP11_DETAIL_VOID_H - namespace sqlpp { namespace detail @@ -41,5 +40,3 @@ namespace sqlpp using void_t = typename void_impl::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/dynamic_join.h b/include/sqlpp11/dynamic_join.h index 0d4d61dc8..a868b5c1c 100644 --- a/include/sqlpp11/dynamic_join.h +++ b/include/sqlpp11/dynamic_join.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2016-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DYNAMIC_JOIN_H -#define SQLPP11_DYNAMIC_JOIN_H - #include namespace sqlpp @@ -56,5 +55,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/dynamic_pre_join.h b/include/sqlpp11/dynamic_pre_join.h index 959cfe218..50f61381b 100644 --- a/include/sqlpp11/dynamic_pre_join.h +++ b/include/sqlpp11/dynamic_pre_join.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2016-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DYNAMIC_PRE_JOIN_H -#define SQLPP11_DYNAMIC_PRE_JOIN_H - #include #include @@ -162,5 +161,3 @@ namespace sqlpp return {dynamic_pre_join_t{table}, {}}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/dynamic_select_column_list.h b/include/sqlpp11/dynamic_select_column_list.h index 912de57f0..2ec44d06a 100644 --- a/include/sqlpp11/dynamic_select_column_list.h +++ b/include/sqlpp11/dynamic_select_column_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DYNAMIC_SELECT_COLUMN_LIST_H -#define SQLPP11_DYNAMIC_SELECT_COLUMN_LIST_H - #include #include #include @@ -101,5 +100,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/eval.h b/include/sqlpp11/eval.h index 65747b0ec..cdf1f61cc 100644 --- a/include/sqlpp11/eval.h +++ b/include/sqlpp11/eval.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EVAL_H -#define SQLPP11_EVAL_H - #include #include #include @@ -62,5 +61,3 @@ namespace sqlpp return eval(db, verbatim(sql_code)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/exception.h b/include/sqlpp11/exception.h index 36fcda9e8..3781e40a1 100644 --- a/include/sqlpp11/exception.h +++ b/include/sqlpp11/exception.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXCEPTION_H -#define SQLPP11_EXCEPTION_H - #include namespace sqlpp @@ -42,5 +41,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/exists.h b/include/sqlpp11/exists.h index 9191ddd4e..47dd8fd49 100644 --- a/include/sqlpp11/exists.h +++ b/include/sqlpp11/exists.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXISTS_H -#define SQLPP11_EXISTS_H - #include #include @@ -92,5 +91,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/expression.h b/include/sqlpp11/expression.h index 65eab91a2..17e71eb69 100644 --- a/include/sqlpp11/expression.h +++ b/include/sqlpp11/expression.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXPRESSION_H -#define SQLPP11_EXPRESSION_H - #include #include #include @@ -199,5 +198,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/expression_fwd.h b/include/sqlpp11/expression_fwd.h index dac17abbb..fe704bccf 100644 --- a/include/sqlpp11/expression_fwd.h +++ b/include/sqlpp11/expression_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXPRESSION_FWD_H -#define SQLPP11_EXPRESSION_FWD_H - namespace sqlpp { struct boolean; @@ -280,5 +279,3 @@ namespace sqlpp template using rhs_t = typename detail::rhs_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/expression_operators.h b/include/sqlpp11/expression_operators.h index c2cefbccc..a524b4802 100644 --- a/include/sqlpp11/expression_operators.h +++ b/include/sqlpp11/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXPRESSION_OPERATORS_H -#define SQLPP11_EXPRESSION_OPERATORS_H - #include namespace sqlpp @@ -37,5 +36,3 @@ namespace sqlpp static_assert(wrong_t::value, "Missing expression operators for ValueType"); }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/expression_return_types.h b/include/sqlpp11/expression_return_types.h index 88d408b98..b1048f0cc 100644 --- a/include/sqlpp11/expression_return_types.h +++ b/include/sqlpp11/expression_return_types.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXPRESSION_RETURN_TYPES_H -#define SQLPP11_EXPRESSION_RETURN_TYPES_H - #include namespace sqlpp @@ -157,5 +156,3 @@ namespace sqlpp template using return_type_unary_minus_t = typename return_type_unary_minus::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/field_spec.h b/include/sqlpp11/field_spec.h index a62beeba9..d0b130a78 100644 --- a/include/sqlpp11/field_spec.h +++ b/include/sqlpp11/field_spec.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_FIELD_SPEC_H -#define SQLPP11_FIELD_SPEC_H - #include namespace sqlpp @@ -83,5 +82,3 @@ namespace sqlpp template using make_field_spec_t = typename detail::make_field_spec_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/for_update.h b/include/sqlpp11/for_update.h index ca9087222..e4734797a 100644 --- a/include/sqlpp11/for_update.h +++ b/include/sqlpp11/for_update.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2017, Serge Robyns * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_FOR_UPDATE_H -#define SQLPP11_FOR_UPDATE_H - #include #include #include @@ -169,5 +168,3 @@ namespace sqlpp return statement_t().for_update(std::forward(t)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/from.h b/include/sqlpp11/from.h index 93e5257f6..374f3bc8e 100644 --- a/include/sqlpp11/from.h +++ b/include/sqlpp11/from.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_FROM_H -#define SQLPP11_FROM_H - #include #include #include @@ -313,5 +312,3 @@ namespace sqlpp return statement_t().dynamic_from(std::forward(t)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/functions.h b/include/sqlpp11/functions.h index 3efa7aedd..acf0e6802 100644 --- a/include/sqlpp11/functions.h +++ b/include/sqlpp11/functions.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_FUNCTIONS_H -#define SQLPP11_FUNCTIONS_H - #include #include #include @@ -137,5 +136,3 @@ namespace sqlpp return name_of::template char_ptr(); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/group_by.h b/include/sqlpp11/group_by.h index 0de5ffcad..7f434183e 100644 --- a/include/sqlpp11/group_by.h +++ b/include/sqlpp11/group_by.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_GROUP_BY_H -#define SQLPP11_GROUP_BY_H - #include #include #include @@ -278,5 +277,3 @@ namespace sqlpp return statement_t().dynamic_group_by(std::forward(t)...); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/having.h b/include/sqlpp11/having.h index c023b26c0..bb9aea6fe 100644 --- a/include/sqlpp11/having.h +++ b/include/sqlpp11/having.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_HAVING_H -#define SQLPP11_HAVING_H - #include #include #include @@ -314,5 +313,3 @@ namespace sqlpp return statement_t().dynamic_having(std::forward(t)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/hidden.h b/include/sqlpp11/hidden.h index bf5065ea5..b8d674238 100644 --- a/include/sqlpp11/hidden.h +++ b/include/sqlpp11/hidden.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_HIDDEN_H -#define SQLPP11_HIDDEN_H - namespace sqlpp { template @@ -55,4 +54,3 @@ namespace sqlpp return {part}; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/in.h b/include/sqlpp11/in.h index 279ed47c8..70976de86 100644 --- a/include/sqlpp11/in.h +++ b/include/sqlpp11/in.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IN_H -#define SQLPP11_IN_H - #include #include #include @@ -117,5 +116,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/in_fwd.h b/include/sqlpp11/in_fwd.h index 4a5c86778..cceeba81e 100644 --- a/include/sqlpp11/in_fwd.h +++ b/include/sqlpp11/in_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IN_FWD_H -#define SQLPP11_IN_FWD_H - namespace sqlpp { template @@ -34,5 +33,3 @@ namespace sqlpp template struct not_in_t; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/inconsistent.h b/include/sqlpp11/inconsistent.h index 82e83ec24..d3c690d5b 100644 --- a/include/sqlpp11/inconsistent.h +++ b/include/sqlpp11/inconsistent.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2016-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INCONSISTENT_H -#define SQLPP11_INCONSISTENT_H - #include namespace sqlpp @@ -41,5 +40,3 @@ namespace sqlpp using inconsistent = typename std::enable_if::value, Check>::type; #endif } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/insert.h b/include/sqlpp11/insert.h index 965065f14..39e2b1d8e 100644 --- a/include/sqlpp11/insert.h +++ b/include/sqlpp11/insert.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INSERT_H -#define SQLPP11_INSERT_H - #include #include #include @@ -125,5 +124,3 @@ namespace sqlpp return {blank_insert_t().into(table)}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/insert_value.h b/include/sqlpp11/insert_value.h index 3f6d7e7d9..e7ed389ca 100644 --- a/include/sqlpp11/insert_value.h +++ b/include/sqlpp11/insert_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INSERT_VALUE_H -#define SQLPP11_INSERT_VALUE_H - #include #include #include @@ -112,5 +111,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/insert_value_list.h b/include/sqlpp11/insert_value_list.h index 2a2f4a078..d6361c073 100644 --- a/include/sqlpp11/insert_value_list.h +++ b/include/sqlpp11/insert_value_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INSERT_VALUE_LIST_H -#define SQLPP11_INSERT_VALUE_LIST_H - #include #include #include @@ -687,5 +686,3 @@ namespace sqlpp return statement_t().columns(cols...); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/interpret_tuple.h b/include/sqlpp11/interpret_tuple.h index f0de500f1..e31d7675e 100644 --- a/include/sqlpp11/interpret_tuple.h +++ b/include/sqlpp11/interpret_tuple.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INTERPRET_TUPLE_H -#define SQLPP11_INTERPRET_TUPLE_H - #include #include #include @@ -86,5 +85,3 @@ namespace sqlpp detail::make_index_sequence::value>{}); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/interpretable.h b/include/sqlpp11/interpretable.h index e3090b42c..030fb9649 100644 --- a/include/sqlpp11/interpretable.h +++ b/include/sqlpp11/interpretable.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INTERPRETABLE_H -#define SQLPP11_INTERPRETABLE_H - #include #include #include @@ -100,5 +99,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/interpretable_list.h b/include/sqlpp11/interpretable_list.h index 80ae130aa..4db0534de 100644 --- a/include/sqlpp11/interpretable_list.h +++ b/include/sqlpp11/interpretable_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INTERPRETABLE_LIST_H -#define SQLPP11_INTERPRETABLE_LIST_H - #include #include @@ -92,5 +91,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/into.h b/include/sqlpp11/into.h index 9f5a4d906..8b4252652 100644 --- a/include/sqlpp11/into.h +++ b/include/sqlpp11/into.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INTO_H -#define SQLPP11_INTO_H - #include #include #include @@ -204,5 +203,3 @@ namespace sqlpp return statement_t().into(std::forward(t)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/is_equal_to_or_null.h b/include/sqlpp11/is_equal_to_or_null.h index b04bae0b4..3e17f2e12 100644 --- a/include/sqlpp11/is_equal_to_or_null.h +++ b/include/sqlpp11/is_equal_to_or_null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2021, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IS_EQUAL_TO_OR_NULL_H -#define SQLPP11_IS_EQUAL_TO_OR_NULL_H - #include namespace sqlpp @@ -75,5 +74,3 @@ namespace sqlpp } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/is_not_null.h b/include/sqlpp11/is_not_null.h index f5f232acd..ddae9a932 100644 --- a/include/sqlpp11/is_not_null.h +++ b/include/sqlpp11/is_not_null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IS_NOT_NULL_H -#define SQLPP11_IS_NOT_NULL_H - #include #include #include @@ -78,5 +77,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/is_null.h b/include/sqlpp11/is_null.h index 1c692b1a3..e199706b7 100644 --- a/include/sqlpp11/is_null.h +++ b/include/sqlpp11/is_null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IS_NULL_H -#define SQLPP11_IS_NULL_H - #include #include #include @@ -78,5 +77,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/is_null_fwd.h b/include/sqlpp11/is_null_fwd.h index e0e420bff..888ff84ae 100644 --- a/include/sqlpp11/is_null_fwd.h +++ b/include/sqlpp11/is_null_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IS_NULL_FWD_H -#define SQLPP11_IS_NULL_FWD_H - namespace sqlpp { template @@ -34,5 +33,3 @@ namespace sqlpp template struct is_not_null_t; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/join.h b/include/sqlpp11/join.h index 7bd996704..3d42027f6 100644 --- a/include/sqlpp11/join.h +++ b/include/sqlpp11/join.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_JOIN_H -#define SQLPP11_JOIN_H - #include #include #include @@ -90,5 +89,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/join_types.h b/include/sqlpp11/join_types.h index 55561981a..4a6e19184 100644 --- a/include/sqlpp11/join_types.h +++ b/include/sqlpp11/join_types.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_JOIN_TYPES_H -#define SQLPP11_JOIN_TYPES_H - #include namespace sqlpp @@ -69,5 +68,3 @@ namespace sqlpp static constexpr const char* _name = " CROSS"; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/limit.h b/include/sqlpp11/limit.h index 25f94fc52..8173a5cb4 100644 --- a/include/sqlpp11/limit.h +++ b/include/sqlpp11/limit.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_LIMIT_H -#define SQLPP11_LIMIT_H - #include #include #include @@ -317,5 +316,3 @@ namespace sqlpp return statement_t().dynamic_limit(); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/logic.h b/include/sqlpp11/logic.h index e19c39fd9..be3ffd332 100644 --- a/include/sqlpp11/logic.h +++ b/include/sqlpp11/logic.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_LOGIC_H -#define SQLPP11_LOGIC_H - #include // Required for some compilers to use aliases for boolean operators #include @@ -86,5 +85,3 @@ namespace sqlpp using identity_t = T; } // namespace logic } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/lower.h b/include/sqlpp11/lower.h index a5d2cafd7..f9ad1a4b2 100644 --- a/include/sqlpp11/lower.h +++ b/include/sqlpp11/lower.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2023, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_LOWER_H -#define SQLPP11_LOWER_H - #include #include #include @@ -95,5 +94,3 @@ namespace sqlpp } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/mysql/bind_result.h b/include/sqlpp11/mysql/bind_result.h index 473a0f806..e6045faf4 100644 --- a/include/sqlpp11/mysql/bind_result.h +++ b/include/sqlpp11/mysql/bind_result.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_BIND_RESULT_H -#define SQLPP_MYSQL_BIND_RESULT_H - #include #include #include @@ -485,4 +484,3 @@ namespace sqlpp }; } // namespace mysql } // namespace sqlpp -#endif diff --git a/include/sqlpp11/mysql/char_result.h b/include/sqlpp11/mysql/char_result.h index 16efb08b5..e35b5406d 100644 --- a/include/sqlpp11/mysql/char_result.h +++ b/include/sqlpp11/mysql/char_result.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_CHAR_RESULT_H -#define SQLPP_MYSQL_CHAR_RESULT_H - #include #include #include @@ -302,4 +301,3 @@ namespace sqlpp }; } // namespace mysql } // namespace sqlpp -#endif diff --git a/include/sqlpp11/mysql/char_result_row.h b/include/sqlpp11/mysql/char_result_row.h index c4ccc4604..41f5684b8 100644 --- a/include/sqlpp11/mysql/char_result_row.h +++ b/include/sqlpp11/mysql/char_result_row.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_CHAR_RESULT_ROW_H -#define SQLPP_MYSQL_CHAR_RESULT_ROW_H - namespace sqlpp { namespace mysql @@ -43,5 +42,3 @@ namespace sqlpp }; } } - -#endif diff --git a/include/sqlpp11/mysql/connection.h b/include/sqlpp11/mysql/connection.h index a2a72c34f..5b1a2e549 100644 --- a/include/sqlpp11/mysql/connection.h +++ b/include/sqlpp11/mysql/connection.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2017, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_CONNECTION_H -#define SQLPP_MYSQL_CONNECTION_H - #include #include #include @@ -606,5 +605,3 @@ namespace sqlpp } // namespace sqlpp #include - -#endif diff --git a/include/sqlpp11/mysql/connection_config.h b/include/sqlpp11/mysql/connection_config.h index f3c0371a7..538bc69d8 100644 --- a/include/sqlpp11/mysql/connection_config.h +++ b/include/sqlpp11/mysql/connection_config.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_CONNECTION_CONFIG_H -#define SQLPP_MYSQL_CONNECTION_CONFIG_H - #include namespace sqlpp @@ -61,5 +60,3 @@ namespace sqlpp }; } } - -#endif diff --git a/include/sqlpp11/mysql/mysql.h b/include/sqlpp11/mysql/mysql.h index 2702fab01..484331c41 100644 --- a/include/sqlpp11/mysql/mysql.h +++ b/include/sqlpp11/mysql/mysql.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,11 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_H -#define SQLPP_MYSQL_H - #include #include #include - -#endif diff --git a/include/sqlpp11/mysql/prepared_statement.h b/include/sqlpp11/mysql/prepared_statement.h index a00475e2d..42fbcb1dc 100644 --- a/include/sqlpp11/mysql/prepared_statement.h +++ b/include/sqlpp11/mysql/prepared_statement.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_PREPARED_STATEMENT_H -#define SQLPP_MYSQL_PREPARED_STATEMENT_H - #include #include @@ -219,4 +218,3 @@ namespace sqlpp }; } // namespace mysql } // namespace sqlpp -#endif diff --git a/include/sqlpp11/mysql/remove.h b/include/sqlpp11/mysql/remove.h index eaf317ae1..9943fe014 100644 --- a/include/sqlpp11/mysql/remove.h +++ b/include/sqlpp11/mysql/remove.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2021-2021, Roland Bock, ZerQAQ * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_MYSQL_REMOVE_H -#define SQLPP11_MYSQL_REMOVE_H - #include #include #include @@ -67,6 +66,3 @@ namespace sqlpp } // namespace mysql } // namespace sqlpp - -#endif - diff --git a/include/sqlpp11/mysql/serializer.h b/include/sqlpp11/mysql/serializer.h index e7d09f714..366aa40bc 100644 --- a/include/sqlpp11/mysql/serializer.h +++ b/include/sqlpp11/mysql/serializer.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_SERIALIZER_H -#define SQLPP_MYSQL_SERIALIZER_H - #include #include @@ -47,5 +46,3 @@ namespace sqlpp return context; } } - -#endif diff --git a/include/sqlpp11/mysql/sqlpp_mysql.h b/include/sqlpp11/mysql/sqlpp_mysql.h index f497e44ca..4257c7a6e 100644 --- a/include/sqlpp11/mysql/sqlpp_mysql.h +++ b/include/sqlpp11/mysql/sqlpp_mysql.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2018 - 2018, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_MYSQL_H -#define SQLPP_MYSQL_MYSQL_H - #include namespace sqlpp @@ -38,5 +37,3 @@ namespace sqlpp #endif } } - -#endif diff --git a/include/sqlpp11/mysql/update.h b/include/sqlpp11/mysql/update.h index 3eefc0482..4ff65484b 100644 --- a/include/sqlpp11/mysql/update.h +++ b/include/sqlpp11/mysql/update.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2021-2021, Roland Bock, ZerQAQ * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_MYSQL_UPDATE_H -#define SQLPP11_MYSQL_UPDATE_H - #include #include #include @@ -59,6 +58,3 @@ namespace sqlpp } } // namespace mysql } // namespace sqlpp - -#endif - diff --git a/include/sqlpp11/named_interpretable.h b/include/sqlpp11/named_interpretable.h index bd8297804..7923caa7f 100644 --- a/include/sqlpp11/named_interpretable.h +++ b/include/sqlpp11/named_interpretable.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NAMED_INTERPRETABLE_H -#define SQLPP11_NAMED_INTERPRETABLE_H - #include #include #include @@ -111,5 +110,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/no_data.h b/include/sqlpp11/no_data.h index 8eced643c..d4c772ff8 100644 --- a/include/sqlpp11/no_data.h +++ b/include/sqlpp11/no_data.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NO_DATA_H -#define SQLPP11_NO_DATA_H - namespace sqlpp { struct no_data_t @@ -39,4 +38,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/no_name.h b/include/sqlpp11/no_name.h index 515376a27..43260f7bf 100644 --- a/include/sqlpp11/no_name.h +++ b/include/sqlpp11/no_name.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,13 +26,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NO_NAME_H -#define SQLPP11_NO_NAME_H - namespace sqlpp { struct no_name_t { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/noop.h b/include/sqlpp11/noop.h index 6b28190ba..db04e547a 100644 --- a/include/sqlpp11/noop.h +++ b/include/sqlpp11/noop.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NOOP_H -#define SQLPP11_NOOP_H - #include #include #include @@ -91,4 +90,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/noop_fwd.h b/include/sqlpp11/noop_fwd.h index d2f4bf413..bc5e1860d 100644 --- a/include/sqlpp11/noop_fwd.h +++ b/include/sqlpp11/noop_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_NOOP_FWD_H -#define SQLPP_NOOP_FWD_H - namespace sqlpp { struct noop; @@ -34,4 +33,3 @@ namespace sqlpp template struct is_noop; } -#endif diff --git a/include/sqlpp11/not_in.h b/include/sqlpp11/not_in.h index 40bc66ec5..46f5636e5 100644 --- a/include/sqlpp11/not_in.h +++ b/include/sqlpp11/not_in.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NOT_IN_H -#define SQLPP11_NOT_IN_H - #include #include #include @@ -117,5 +116,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/null.h b/include/sqlpp11/null.h index 41754df72..3ca4d7d09 100644 --- a/include/sqlpp11/null.h +++ b/include/sqlpp11/null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NULL_H -#define SQLPP11_NULL_H - #include namespace sqlpp @@ -46,5 +45,3 @@ namespace sqlpp constexpr null_t null = {}; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/offset.h b/include/sqlpp11/offset.h index f72681cd7..e22148a10 100644 --- a/include/sqlpp11/offset.h +++ b/include/sqlpp11/offset.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_OFFSET_H -#define SQLPP11_OFFSET_H - #include #include #include @@ -331,5 +330,3 @@ namespace sqlpp return statement_t().dynamic_offset(); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/on.h b/include/sqlpp11/on.h index c33452dc8..ee9be580b 100644 --- a/include/sqlpp11/on.h +++ b/include/sqlpp11/on.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ON_H -#define SQLPP11_ON_H - #include #include #include @@ -77,5 +76,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/operand_check.h b/include/sqlpp11/operand_check.h index 6775334e3..5c441400d 100644 --- a/include/sqlpp11/operand_check.h +++ b/include/sqlpp11/operand_check.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_OPERAND_CHECK_H -#define SQLPP11_OPERAND_CHECK_H - #include #include @@ -71,5 +70,3 @@ namespace sqlpp template class LPred, typename R, template class RPred> using unwrapped_binary_operand_check_t = typename binary_operand_check::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/order_by.h b/include/sqlpp11/order_by.h index f1577dcfb..bf2886774 100644 --- a/include/sqlpp11/order_by.h +++ b/include/sqlpp11/order_by.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ORDER_BY_H -#define SQLPP11_ORDER_BY_H - #include #include #include @@ -276,5 +275,3 @@ namespace sqlpp return statement_t().dynamic_order_by(std::forward(t)...); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/over.h b/include/sqlpp11/over.h index f30236114..d42a4586f 100644 --- a/include/sqlpp11/over.h +++ b/include/sqlpp11/over.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_OVER_H -#define SQLPP11_OVER_H - #include namespace sqlpp @@ -62,5 +61,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/parameter.h b/include/sqlpp11/parameter.h index 7b61d33b8..20f27a96d 100644 --- a/include/sqlpp11/parameter.h +++ b/include/sqlpp11/parameter.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PARAMETER_H -#define SQLPP11_PARAMETER_H - #include #include #include @@ -80,5 +79,3 @@ namespace sqlpp return {}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/parameter_list.h b/include/sqlpp11/parameter_list.h index e19ee5e57..f6dabb48f 100644 --- a/include/sqlpp11/parameter_list.h +++ b/include/sqlpp11/parameter_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PARAMETER_LIST_H -#define SQLPP11_PARAMETER_LIST_H - #include #include #include @@ -66,5 +65,3 @@ namespace sqlpp template using make_parameter_list_t = parameter_list_t>; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/parameterized_verbatim.h b/include/sqlpp11/parameterized_verbatim.h index b0bcc364c..456fb6b3f 100644 --- a/include/sqlpp11/parameterized_verbatim.h +++ b/include/sqlpp11/parameterized_verbatim.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PARAMETERIZED_VERBATIM_COUNT_H -#define SQLPP11_PARAMETERIZED_VERBATIM_COUNT_H - #include #include #include @@ -76,5 +75,3 @@ namespace sqlpp } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/policy_update.h b/include/sqlpp11/policy_update.h index e47da9eee..6280cbcdd 100644 --- a/include/sqlpp11/policy_update.h +++ b/include/sqlpp11/policy_update.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_POLICY_UPDATE_H -#define SQLPP11_POLICY_UPDATE_H - #include namespace sqlpp @@ -68,5 +67,3 @@ namespace sqlpp template using new_statement_t = typename new_statement_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/portable_static_assert.h b/include/sqlpp11/portable_static_assert.h index b8701ca47..7129aff1a 100644 --- a/include/sqlpp11/portable_static_assert.h +++ b/include/sqlpp11/portable_static_assert.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PORTABLE_STATIC_ASSERT_H -#define SQLPP11_PORTABLE_STATIC_ASSERT_H - #include #include @@ -94,5 +93,3 @@ namespace sqlpp template using static_combined_check_t = typename detail::static_combined_check_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/bind_result.h b/include/sqlpp11/postgresql/bind_result.h index 9de3c6a5a..4146460ad 100644 --- a/include/sqlpp11/postgresql/bind_result.h +++ b/include/sqlpp11/postgresql/bind_result.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2020, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_BIND_RESULT_H -#define SQLPP_POSTGRESQL_BIND_RESULT_H - #include #include #include @@ -410,5 +409,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/connection.h b/include/sqlpp11/postgresql/connection.h index 9856332ac..e7ecdde40 100644 --- a/include/sqlpp11/postgresql/connection.h +++ b/include/sqlpp11/postgresql/connection.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * Copyright (c) 2023, Vesselin Atanasov @@ -26,9 +28,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_CONNECTION_H -#define SQLPP_POSTGRESQL_CONNECTION_H - #include #include #include @@ -664,5 +663,3 @@ namespace sqlpp } // namespace sqlpp #include - -#endif diff --git a/include/sqlpp11/postgresql/connection_config.h b/include/sqlpp11/postgresql/connection_config.h index 9fd12a1af..62dec0f15 100644 --- a/include/sqlpp11/postgresql/connection_config.h +++ b/include/sqlpp11/postgresql/connection_config.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_CONNECTION_CONFIG_H -#define SQLPP_POSTGRESQL_CONNECTION_CONFIG_H - #include #include @@ -92,5 +91,3 @@ namespace sqlpp }; } } - -#endif diff --git a/include/sqlpp11/postgresql/detail/connection_handle.h b/include/sqlpp11/postgresql/detail/connection_handle.h index a52fb551a..33b0161e9 100644 --- a/include/sqlpp11/postgresql/detail/connection_handle.h +++ b/include/sqlpp11/postgresql/detail/connection_handle.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_CONNECTION_HANDLE_H -#define SQLPP_POSTGRESQL_CONNECTION_HANDLE_H - #include #include #include @@ -240,5 +239,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/postgresql/detail/prepared_statement_handle.h b/include/sqlpp11/postgresql/detail/prepared_statement_handle.h index a8fbb7068..89d11a601 100644 --- a/include/sqlpp11/postgresql/detail/prepared_statement_handle.h +++ b/include/sqlpp11/postgresql/detail/prepared_statement_handle.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * Copyright © 2015-2016, Bartosz Wieczorek @@ -26,9 +28,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_PREPARED_STATEMENT_HANDLE_H -#define SQLPP_POSTGRESQL_PREPARED_STATEMENT_HANDLE_H - #include #include #include @@ -194,5 +193,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/postgresql/dynamic_libpq.h b/include/sqlpp11/postgresql/dynamic_libpq.h index 80aecf3d8..e681d611d 100644 --- a/include/sqlpp11/postgresql/dynamic_libpq.h +++ b/include/sqlpp11/postgresql/dynamic_libpq.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015, Volker Assmann * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DYNAMIC_LIBPQ_H -#define DYNAMIC_LIBPQ_H - #include #include @@ -150,5 +149,3 @@ void init_pg(std::string libname); } } } -#endif // DYNAMIC_LIBPQ_H - diff --git a/include/sqlpp11/postgresql/exception.h b/include/sqlpp11/postgresql/exception.h index f42eb9514..311a72186 100644 --- a/include/sqlpp11/postgresql/exception.h +++ b/include/sqlpp11/postgresql/exception.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_EXCEPTION_H -#define SQLPP_POSTGRESQL_EXCEPTION_H - /** classes copied from http://pqxx.org/devprojects/libpqxx/doc/3.1/html/Reference/a00032.html */ @@ -437,5 +436,3 @@ namespace sqlpp }; } } - -#endif diff --git a/include/sqlpp11/postgresql/insert.h b/include/sqlpp11/postgresql/insert.h index e9eafe547..c77ce5139 100644 --- a/include/sqlpp11/postgresql/insert.h +++ b/include/sqlpp11/postgresql/insert.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_INSERT_H -#define SQLPP_POSTGRESQL_INSERT_H - #include #include #include @@ -65,5 +64,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/on_conflict.h b/include/sqlpp11/postgresql/on_conflict.h index b467e23c8..6bc8a0e87 100644 --- a/include/sqlpp11/postgresql/on_conflict.h +++ b/include/sqlpp11/postgresql/on_conflict.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2019, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_NO_CONFLICT_H -#define SQLPP_POSTGRESQL_NO_CONFLICT_H - #include #include #include @@ -260,5 +259,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/on_conflict_do_nothing.h b/include/sqlpp11/postgresql/on_conflict_do_nothing.h index e876d1f05..398e42639 100644 --- a/include/sqlpp11/postgresql/on_conflict_do_nothing.h +++ b/include/sqlpp11/postgresql/on_conflict_do_nothing.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2019, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_ON_CONFLICT_DO_NOTHING_H -#define SQLPP_POSTGRESQL_ON_CONFLICT_DO_NOTHING_H - #include #include #include @@ -123,5 +122,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/on_conflict_do_update.h b/include/sqlpp11/postgresql/on_conflict_do_update.h index 50b5defe4..f85f1f931 100644 --- a/include/sqlpp11/postgresql/on_conflict_do_update.h +++ b/include/sqlpp11/postgresql/on_conflict_do_update.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2019, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_ON_CONFLICT_DO_UPDATE_H -#define SQLPP_POSTGRESQL_ON_CONFLICT_DO_UPDATE_H - #include #include #include @@ -228,5 +227,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/postgresql.h b/include/sqlpp11/postgresql/postgresql.h index e68f75fa7..374fe70db 100644 --- a/include/sqlpp11/postgresql/postgresql.h +++ b/include/sqlpp11/postgresql/postgresql.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * Copyright (c) 2023, Vesselin Atanasov @@ -26,13 +28,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_H -#define SQLPP_POSTGRESQL_H - #include #include #include #include #include - -#endif diff --git a/include/sqlpp11/postgresql/prepared_statement.h b/include/sqlpp11/postgresql/prepared_statement.h index 4cd8d6f8c..d47276103 100644 --- a/include/sqlpp11/postgresql/prepared_statement.h +++ b/include/sqlpp11/postgresql/prepared_statement.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * Copyright © 2021-2021, Roland Bock @@ -26,9 +28,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_PREPARED_STATEMENT_H -#define SQLPP_POSTGRESQL_PREPARED_STATEMENT_H - #include #include #include @@ -264,5 +263,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/postgresql/result.h b/include/sqlpp11/postgresql/result.h index cc56d1f55..879417d98 100644 --- a/include/sqlpp11/postgresql/result.h +++ b/include/sqlpp11/postgresql/result.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2015-2016, Bartosz Wieczorek * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_RESULT_H -#define SQLPP_POSTGRESQL_RESULT_H - #include #include #include @@ -381,5 +380,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/postgresql/result_field.h b/include/sqlpp11/postgresql/result_field.h index 565ade42b..64e73dccd 100644 --- a/include/sqlpp11/postgresql/result_field.h +++ b/include/sqlpp11/postgresql/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2021-2021, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_BLOB_RESULT_FIELD_H -#define SQLPP_POSTGRESQL_BLOB_RESULT_FIELD_H - #include #include #include @@ -119,4 +118,3 @@ namespace sqlpp }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/postgresql/returning.h b/include/sqlpp11/postgresql/returning.h index 5ecab977e..296ba1243 100644 --- a/include/sqlpp11/postgresql/returning.h +++ b/include/sqlpp11/postgresql/returning.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2018, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_RETURNING_H -#define SQLPP_POSTGRESQL_RETURNING_H - #include #include #include @@ -172,5 +171,3 @@ namespace sqlpp }; } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/returning_column_list.h b/include/sqlpp11/postgresql/returning_column_list.h index 051049ce4..2542a22b9 100644 --- a/include/sqlpp11/postgresql/returning_column_list.h +++ b/include/sqlpp11/postgresql/returning_column_list.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_RETURNING_COLUMN_LIST_H -#define SQLPP_POSTGRESQL_RETURNING_COLUMN_LIST_H - #include #include #include @@ -492,5 +491,3 @@ namespace sqlpp } } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/serializer.h b/include/sqlpp11/postgresql/serializer.h index e801e7c5d..95ba037d6 100644 --- a/include/sqlpp11/postgresql/serializer.h +++ b/include/sqlpp11/postgresql/serializer.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_SERIALIZER_H -#define SQLPP_POSTGRESQL_SERIALIZER_H - #include #include #include @@ -73,5 +72,3 @@ namespace sqlpp return context; } } - -#endif diff --git a/include/sqlpp11/postgresql/update.h b/include/sqlpp11/postgresql/update.h index 8d72cd80c..36bcfdfc0 100644 --- a/include/sqlpp11/postgresql/update.h +++ b/include/sqlpp11/postgresql/update.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright (c) 2016, Bartoszek * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_UPDATE_H -#define SQLPP_POSTGRESQL_UPDATE_H - #include #include @@ -53,5 +52,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/postgresql/visibility.h b/include/sqlpp11/postgresql/visibility.h index 0da2365a4..99266d5d7 100644 --- a/include/sqlpp11/postgresql/visibility.h +++ b/include/sqlpp11/postgresql/visibility.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015 cszawisza * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_POSTGRESQL_VISIBILITY_H -#define SQLPP11_POSTGRESQL_VISIBILITY_H - #ifdef SQLPP_DYNAMIC_LOADING #if defined _WIN32 || defined __CYGWIN__ #ifdef BUILDING_DLL @@ -56,5 +55,3 @@ #define DLL_PUBLIC #define DLL_LOCAL #endif - -#endif diff --git a/include/sqlpp11/ppgen.h b/include/sqlpp11/ppgen.h index f602ede56..11787d72a 100644 --- a/include/sqlpp11/ppgen.h +++ b/include/sqlpp11/ppgen.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen_h -#define _sqlpp__ppgen_h - #include // enable the Clang support @@ -218,5 +217,3 @@ ) /***************************************************************************/ - -#endif // _sqlpp__ppgen_h diff --git a/include/sqlpp11/ppgen/colops/auto_increment.h b/include/sqlpp11/ppgen/colops/auto_increment.h index fc370b39e..fca372387 100644 --- a/include/sqlpp11/ppgen/colops/auto_increment.h +++ b/include/sqlpp11/ppgen/colops/auto_increment.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__auto_increment_h -#define _sqlpp__ppgen__colops__auto_increment_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_AUTO_INCREMENT \ PROC_SQLPP_AUTO_INCREMENT #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_AUTO_INCREMENT(...) \ ::sqlpp::tag::must_not_insert, ::sqlpp::tag::must_not_update - -#endif // _sqlpp__ppgen__colops__auto_increment_h diff --git a/include/sqlpp11/ppgen/colops/blob.h b/include/sqlpp11/ppgen/colops/blob.h index 5e5332d97..ae13040da 100644 --- a/include/sqlpp11/ppgen/colops/blob.h +++ b/include/sqlpp11/ppgen/colops/blob.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__blob_h -#define _sqlpp__ppgen__colops__blob_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_tinyblob \ PROC_tinyblob #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_tinyblob(...) \ @@ -48,5 +47,3 @@ PROC_longblob #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_longblob(...) \ ::sqlpp::blob - -#endif // _sqlpp__ppgen__colops__blob_h diff --git a/include/sqlpp11/ppgen/colops/bool.h b/include/sqlpp11/ppgen/colops/bool.h index d1ec8662d..83bbfd768 100644 --- a/include/sqlpp11/ppgen/colops/bool.h +++ b/include/sqlpp11/ppgen/colops/bool.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__bool_h -#define _sqlpp__ppgen__colops__bool_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_bool \ PROC_bool #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_bool(...) \ ::sqlpp::boolean - -#endif // _sqlpp__ppgen__colops__bool_h diff --git a/include/sqlpp11/ppgen/colops/comment.h b/include/sqlpp11/ppgen/colops/comment.h index e5ab8d826..a6d764f19 100644 --- a/include/sqlpp11/ppgen/colops/comment.h +++ b/include/sqlpp11/ppgen/colops/comment.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__comment_h -#define _sqlpp__ppgen__colops__comment_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_COMMENT \ PROC_SQLPP_COMMENT #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_COMMENT(str) \ [COMMENT is not implemented] - -#endif // _sqlpp__ppgen__colops__comment_h diff --git a/include/sqlpp11/ppgen/colops/datetime.h b/include/sqlpp11/ppgen/colops/datetime.h index 15ef632b1..1e745b317 100644 --- a/include/sqlpp11/ppgen/colops/datetime.h +++ b/include/sqlpp11/ppgen/colops/datetime.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__datetime_h -#define _sqlpp__ppgen__colops__datetime_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_date \ PROC_date #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_date(...) \ @@ -38,5 +37,3 @@ PROC_datetime #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_datetime(...) \ ::sqlpp::time_point - -#endif // _sqlpp__ppgen__colops__datetime_h diff --git a/include/sqlpp11/ppgen/colops/default.h b/include/sqlpp11/ppgen/colops/default.h index f58c095fc..ba2566f29 100644 --- a/include/sqlpp11/ppgen/colops/default.h +++ b/include/sqlpp11/ppgen/colops/default.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__default_h -#define _sqlpp__ppgen__colops__default_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_DEFAULT \ PROC_SQLPP_DEFAULT #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_DEFAULT(...) \ [DEFAULT is not implemented] - -#endif // _sqlpp__ppgen__colops__default_h diff --git a/include/sqlpp11/ppgen/colops/floating_point.h b/include/sqlpp11/ppgen/colops/floating_point.h index 2980815e9..4efe269b2 100644 --- a/include/sqlpp11/ppgen/colops/floating_point.h +++ b/include/sqlpp11/ppgen/colops/floating_point.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__floating_point_h -#define _sqlpp__ppgen__colops__floating_point_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_float \ PROC_float #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_float(...) \ @@ -43,5 +42,3 @@ PROC_double #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_double(...) \ ::sqlpp::floating_point - -#endif // _sqlpp__ppgen__colops__floating_point_h diff --git a/include/sqlpp11/ppgen/colops/foreign_key.h b/include/sqlpp11/ppgen/colops/foreign_key.h index 8b43938bd..0b3360360 100644 --- a/include/sqlpp11/ppgen/colops/foreign_key.h +++ b/include/sqlpp11/ppgen/colops/foreign_key.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__foreign_key_h -#define _sqlpp__ppgen__colops__foreign_key_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_FOREIGN_KEY \ PROC_SQLPP_FOREIGN_KEY #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_FOREIGN_KEY(keyname, tblname, colname) \ [FOREIGN KEY is not implemented] - -#endif // _sqlpp__ppgen__colops__foreign_key_h diff --git a/include/sqlpp11/ppgen/colops/index.h b/include/sqlpp11/ppgen/colops/index.h index bbea4bec2..f03158592 100644 --- a/include/sqlpp11/ppgen/colops/index.h +++ b/include/sqlpp11/ppgen/colops/index.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__index_h -#define _sqlpp__ppgen__colops__index_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_INDEX \ PROC_SQLPP_INDEX #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_INDEX(indexname, tblname, /* cols */...) \ [INDEX is not implemented] - -#endif // _sqlpp__ppgen__colops__index_h diff --git a/include/sqlpp11/ppgen/colops/integer.h b/include/sqlpp11/ppgen/colops/integer.h index ccf2c60e3..217521251 100644 --- a/include/sqlpp11/ppgen/colops/integer.h +++ b/include/sqlpp11/ppgen/colops/integer.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__integer_h -#define _sqlpp__ppgen__colops__integer_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_tinyint \ PROC_tinyint #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_tinyint(...) \ @@ -48,5 +47,3 @@ PROC_bigint #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_bigint(...) \ ::sqlpp::bigint - -#endif // _sqlpp__ppgen__colops__integer_h diff --git a/include/sqlpp11/ppgen/colops/not_null.h b/include/sqlpp11/ppgen/colops/not_null.h index cae2767eb..d710bf277 100644 --- a/include/sqlpp11/ppgen/colops/not_null.h +++ b/include/sqlpp11/ppgen/colops/not_null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__not_null_h -#define _sqlpp__ppgen__colops__not_null_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_NOT_NULL \ PROC_SQLPP_NOT_NULL #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_NOT_NULL(...) \ ::sqlpp::tag::require_insert - -#endif // _sqlpp__ppgen__colops__not_null_h diff --git a/include/sqlpp11/ppgen/colops/null.h b/include/sqlpp11/ppgen/colops/null.h index c45807f08..c01346f74 100644 --- a/include/sqlpp11/ppgen/colops/null.h +++ b/include/sqlpp11/ppgen/colops/null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__null_h -#define _sqlpp__ppgen__colops__null_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_NULL \ PROC_SQLPP_NULL #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_NULL(...) \ ::sqlpp::tag::can_be_null - -#endif // _sqlpp__ppgen__colops__null_h diff --git a/include/sqlpp11/ppgen/colops/primary_key.h b/include/sqlpp11/ppgen/colops/primary_key.h index dd8583a11..33e3227ee 100644 --- a/include/sqlpp11/ppgen/colops/primary_key.h +++ b/include/sqlpp11/ppgen/colops/primary_key.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__primary_key_h -#define _sqlpp__ppgen__colops__primary_key_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_PRIMARY_KEY \ PROC_SQLPP_PRIMARY_KEY #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_PRIMARY_KEY(...) \ ::sqlpp::tag::must_not_update - -#endif // _sqlpp__ppgen__colops__primary_key_h diff --git a/include/sqlpp11/ppgen/colops/text.h b/include/sqlpp11/ppgen/colops/text.h index 44203c4c3..095132933 100644 --- a/include/sqlpp11/ppgen/colops/text.h +++ b/include/sqlpp11/ppgen/colops/text.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__text_h -#define _sqlpp__ppgen__colops__text_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_text \ PROC_text #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_text(...) \ ::sqlpp::text - -#endif // _sqlpp__ppgen__colops__text_h diff --git a/include/sqlpp11/ppgen/colops/timestamp.h b/include/sqlpp11/ppgen/colops/timestamp.h index 080be5fc7..a3a1fcd19 100644 --- a/include/sqlpp11/ppgen/colops/timestamp.h +++ b/include/sqlpp11/ppgen/colops/timestamp.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__timestamp_h -#define _sqlpp__ppgen__colops__timestamp_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_timestamp \ PROC_timestamp #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_timestamp(...) \ ::sqlpp::time_point - -#endif // _sqlpp__ppgen__colops__timestamp_h diff --git a/include/sqlpp11/ppgen/colops/unique_index.h b/include/sqlpp11/ppgen/colops/unique_index.h index b003c13b3..554c2aa86 100644 --- a/include/sqlpp11/ppgen/colops/unique_index.h +++ b/include/sqlpp11/ppgen/colops/unique_index.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__unique_index_h -#define _sqlpp__ppgen__colops__unique_index_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_UNIQUE_INDEX \ PROC_SQLPP_UNIQUE_INDEX #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_UNIQUE_INDEX(indexname, tblname, /* cols */...) \ [UNIQUE INDEX is not implemented] - -#endif // _sqlpp__ppgen__colops__unique_index_h diff --git a/include/sqlpp11/ppgen/colops/unsigned_integer.h b/include/sqlpp11/ppgen/colops/unsigned_integer.h index 08f54411f..6d5fe301b 100644 --- a/include/sqlpp11/ppgen/colops/unsigned_integer.h +++ b/include/sqlpp11/ppgen/colops/unsigned_integer.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, Damien COJAN * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__unsigned_integer_h -#define _sqlpp__ppgen__colops__unsigned_integer_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_tinyint_unsigned \ PROC_tinyint_unsigned #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_tinyint_unsigned(...) \ @@ -48,5 +47,3 @@ PROC_bigint_unsigned #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_bigint_unsigned(...) \ ::sqlpp::bigint_unsigned - -#endif // _sqlpp__ppgen__colops__unsigned_integer_h diff --git a/include/sqlpp11/ppgen/colops/varchar.h b/include/sqlpp11/ppgen/colops/varchar.h index 2f952ee4f..5fb785444 100644 --- a/include/sqlpp11/ppgen/colops/varchar.h +++ b/include/sqlpp11/ppgen/colops/varchar.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__varchar_h -#define _sqlpp__ppgen__colops__varchar_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_varchar(str) \ PROC_varchar #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_varchar(str) \ ::sqlpp::varchar - -#endif // _sqlpp__ppgen__colops__varchar_h diff --git a/include/sqlpp11/ppgen/tblops/character_set.h b/include/sqlpp11/ppgen/tblops/character_set.h index 2db1ba646..b6d9cee0f 100644 --- a/include/sqlpp11/ppgen/tblops/character_set.h +++ b/include/sqlpp11/ppgen/tblops/character_set.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__tblops__character_set_h -#define _sqlpp__ppgen__tblops__character_set_h - #define SQLPP_DECLARE_TABLE_GET_PROC_LAZY_SQLPP_CHARACTER_SET \ PROC_SQLPP_CHARACTER_SET #define SQLPP_DECLARE_TABLE_GEN_PROC_SQLPP_CHARACTER_SET(str) \ [CHARACTER_SET is not implemented] - -#endif // _sqlpp__ppgen__tblops__character_set_h diff --git a/include/sqlpp11/ppgen/tblops/comment.h b/include/sqlpp11/ppgen/tblops/comment.h index 5b85563b5..c44db2145 100644 --- a/include/sqlpp11/ppgen/tblops/comment.h +++ b/include/sqlpp11/ppgen/tblops/comment.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__tblops__comment_h -#define _sqlpp__ppgen__tblops__comment_h - #define SQLPP_DECLARE_TABLE_GET_TRAITS_LAZY_SQLPP_COMMENT \ PROC_SQLPP_COMMENT #define SQLPP_DECLARE_TABLE_GEN_TRAITS_PROC_SQLPP_COMMENT(str) \ [COMMENT is not implemented] - -#endif // _sqlpp__ppgen__tblops__comment_h diff --git a/include/sqlpp11/ppgen/tblops/default.h b/include/sqlpp11/ppgen/tblops/default.h index 0de848afa..65acc40f8 100644 --- a/include/sqlpp11/ppgen/tblops/default.h +++ b/include/sqlpp11/ppgen/tblops/default.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__tblops__default_h -#define _sqlpp__ppgen__tblops__default_h - #define SQLPP_DECLARE_TABLE_GET_TRAITS_LAZY_SQLPP_DEFAULT \ PROC_SQLPP_DEFAULT #define SQLPP_DECLARE_TABLE_GEN_TRAITS_PROC_SQLPP_DEFAULT(...) \ [DEFAULT is not implemented] - -#endif // _sqlpp__ppgen__tblops__default_h diff --git a/include/sqlpp11/ppgen/tblops/engine.h b/include/sqlpp11/ppgen/tblops/engine.h index d2345f93e..c6b46a5a6 100644 --- a/include/sqlpp11/ppgen/tblops/engine.h +++ b/include/sqlpp11/ppgen/tblops/engine.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__tblops__engine_h -#define _sqlpp__ppgen__tblops__engine_h - #define SQLPP_DECLARE_TABLE_GET_PROC_LAZY_SQLPP_ENGINE \ PROC_SQLPP_ENGINE #define SQLPP_DECLARE_TABLE_GEN_PROC_SQLPP_ENGINE(str) \ [ENGINE is not implemented] - -#endif // _sqlpp__ppgen__tblops__engine_h diff --git a/include/sqlpp11/ppgen/tools/wrap_seq.h b/include/sqlpp11/ppgen/tools/wrap_seq.h index 49a8a71b6..acd71a8c8 100644 --- a/include/sqlpp11/ppgen/tools/wrap_seq.h +++ b/include/sqlpp11/ppgen/tools/wrap_seq.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__tools__wrap_seq_h -#define _sqlpp__ppgen__tools__wrap_seq_h - #define SQLPP_WRAP_SEQUENCE_X(...) \ ((__VA_ARGS__)) SQLPP_WRAP_SEQUENCE_Y #define SQLPP_WRAP_SEQUENCE_Y(...) \ @@ -36,5 +35,3 @@ #define SQLPP_WRAP_SEQUENCE_X0 #define SQLPP_WRAP_SEQUENCE_Y0 - -#endif // _sqlpp__ppgen__tools__wrap_seq_h diff --git a/include/sqlpp11/pre_join.h b/include/sqlpp11/pre_join.h index 61033579e..ddf9beb03 100644 --- a/include/sqlpp11/pre_join.h +++ b/include/sqlpp11/pre_join.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PRE_JOIN_H -#define SQLPP11_PRE_JOIN_H - #include #include #include @@ -207,5 +206,3 @@ namespace sqlpp return {pre_join_t, from_table_t>{from_table(lhs), from_table(rhs)}, {}}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/prepared_execute.h b/include/sqlpp11/prepared_execute.h index 68d200e72..fadd1a6e3 100644 --- a/include/sqlpp11/prepared_execute.h +++ b/include/sqlpp11/prepared_execute.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PREPARED_EXECUTE_H -#define SQLPP11_PREPARED_EXECUTE_H - #include #include #include @@ -58,5 +57,3 @@ namespace sqlpp mutable _prepared_statement_t _prepared_statement; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/prepared_insert.h b/include/sqlpp11/prepared_insert.h index 25b02fd15..7c95f39a1 100644 --- a/include/sqlpp11/prepared_insert.h +++ b/include/sqlpp11/prepared_insert.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PREPARED_INSERT_H -#define SQLPP11_PREPARED_INSERT_H - #include #include #include @@ -58,5 +57,3 @@ namespace sqlpp mutable _prepared_statement_t _prepared_statement; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/prepared_remove.h b/include/sqlpp11/prepared_remove.h index bcf4c7949..0baa37782 100644 --- a/include/sqlpp11/prepared_remove.h +++ b/include/sqlpp11/prepared_remove.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PREPARED_REMOVE_H -#define SQLPP11_PREPARED_REMOVE_H - #include #include #include @@ -58,5 +57,3 @@ namespace sqlpp mutable _prepared_statement_t _prepared_statement; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/prepared_select.h b/include/sqlpp11/prepared_select.h index fb68d4901..3d4ed4441 100644 --- a/include/sqlpp11/prepared_select.h +++ b/include/sqlpp11/prepared_select.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PREPARED_SELECT_H -#define SQLPP11_PREPARED_SELECT_H - #include #include #include @@ -61,5 +60,3 @@ namespace sqlpp mutable _prepared_statement_t _prepared_statement; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/prepared_update.h b/include/sqlpp11/prepared_update.h index 885e8056d..8f15b74a3 100644 --- a/include/sqlpp11/prepared_update.h +++ b/include/sqlpp11/prepared_update.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PREPARED_UPDATE_H -#define SQLPP11_PREPARED_UPDATE_H - #include #include #include @@ -58,5 +57,3 @@ namespace sqlpp mutable _prepared_statement_t _prepared_statement; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/remove.h b/include/sqlpp11/remove.h index 209f6cdfb..99a440809 100644 --- a/include/sqlpp11/remove.h +++ b/include/sqlpp11/remove.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_REMOVE_H -#define SQLPP11_REMOVE_H - #include #include #include @@ -123,5 +122,3 @@ namespace sqlpp return {blank_remove_t().from(table)}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/result.h b/include/sqlpp11/result.h index 541982a92..58b0bd103 100644 --- a/include/sqlpp11/result.h +++ b/include/sqlpp11/result.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_RESULT_H -#define SQLPP11_RESULT_H - #include #include #include @@ -170,5 +169,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/result_field.h b/include/sqlpp11/result_field.h index 2c98f9908..bcfd965b3 100644 --- a/include/sqlpp11/result_field.h +++ b/include/sqlpp11/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_RESULT_FIELD_H -#define SQLPP11_RESULT_FIELD_H - #include #include #include @@ -61,4 +60,3 @@ namespace sqlpp return serialize(rf, os); } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/result_field_base.h b/include/sqlpp11/result_field_base.h index c7b990d56..9206ebd60 100644 --- a/include/sqlpp11/result_field_base.h +++ b/include/sqlpp11/result_field_base.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_RESULT_FIELD_BASE_H -#define SQLPP11_RESULT_FIELD_BASE_H - #include #include #include @@ -113,4 +112,3 @@ namespace sqlpp _cpp_storage_type _value; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/result_row.h b/include/sqlpp11/result_row.h index de0eab8a0..a6241b629 100644 --- a/include/sqlpp11/result_row.h +++ b/include/sqlpp11/result_row.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_RESULT_ROW_H -#define SQLPP11_RESULT_ROW_H - #include #include #include @@ -363,5 +362,3 @@ namespace sqlpp row._apply(callable); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/result_row_fwd.h b/include/sqlpp11/result_row_fwd.h index 3562ad9f9..e0ea5ef7f 100644 --- a/include/sqlpp11/result_row_fwd.h +++ b/include/sqlpp11/result_row_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_RESULT_ROW_FWD_H -#define SQLPP11_RESULT_ROW_FWD_H - namespace sqlpp { template @@ -35,5 +34,3 @@ namespace sqlpp template struct dynamic_result_row_t; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/schema.h b/include/sqlpp11/schema.h index d44fc303a..b7a8e721f 100644 --- a/include/sqlpp11/schema.h +++ b/include/sqlpp11/schema.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SCHEMA_H -#define SQLPP11_SCHEMA_H - #include namespace sqlpp @@ -43,5 +42,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/schema_qualified_table.h b/include/sqlpp11/schema_qualified_table.h index e92da9e82..a8de5f121 100644 --- a/include/sqlpp11/schema_qualified_table.h +++ b/include/sqlpp11/schema_qualified_table.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SCHEMA_QUALIFIED_TABLE_H -#define SQLPP11_SCHEMA_QUALIFIED_TABLE_H - #include #include #include @@ -84,5 +83,3 @@ namespace sqlpp return {schema, table}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/select.h b/include/sqlpp11/select.h index 8dd84bd40..d15ed5c55 100644 --- a/include/sqlpp11/select.h +++ b/include/sqlpp11/select.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SELECT_H -#define SQLPP11_SELECT_H - #include #include @@ -106,4 +105,3 @@ namespace sqlpp return blank_select_t().columns(columns...); } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/select_column_list.h b/include/sqlpp11/select_column_list.h index 88d66b3df..edfa2fc01 100644 --- a/include/sqlpp11/select_column_list.h +++ b/include/sqlpp11/select_column_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SELECT_COLUMN_LIST_H -#define SQLPP11_SELECT_COLUMN_LIST_H - #include #include #include @@ -450,5 +449,3 @@ namespace sqlpp return statement_t().dynamic_columns(std::forward(t)...); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/select_flag_list.h b/include/sqlpp11/select_flag_list.h index 5c27ca737..8a2cfd2ed 100644 --- a/include/sqlpp11/select_flag_list.h +++ b/include/sqlpp11/select_flag_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SELECT_FLAG_LIST_H -#define SQLPP11_SELECT_FLAG_LIST_H - #include #include #include @@ -265,5 +264,3 @@ namespace sqlpp return statement_t().dynamic_flags(std::forward(t)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/select_flags.h b/include/sqlpp11/select_flags.h index d906f5a16..2ce0cba82 100644 --- a/include/sqlpp11/select_flags.h +++ b/include/sqlpp11/select_flags.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SELECT_FLAGS_H -#define SQLPP11_SELECT_FLAGS_H - #include #include #include @@ -77,5 +76,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/select_pseudo_table.h b/include/sqlpp11/select_pseudo_table.h index 8327efb85..d3ce771b7 100644 --- a/include/sqlpp11/select_pseudo_table.h +++ b/include/sqlpp11/select_pseudo_table.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SELECT_PSEUDO_TABLE_H -#define SQLPP11_SELECT_PSEUDO_TABLE_H - #include #include @@ -81,5 +80,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/serialize.h b/include/sqlpp11/serialize.h index b92bf174c..76f735ab8 100644 --- a/include/sqlpp11/serialize.h +++ b/include/sqlpp11/serialize.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SERIALIZE_H -#define SQLPP11_SERIALIZE_H - #include namespace sqlpp @@ -48,5 +47,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/serializer_context.h b/include/sqlpp11/serializer_context.h index 3a79cad3b..42f7d44aa 100644 --- a/include/sqlpp11/serializer_context.h +++ b/include/sqlpp11/serializer_context.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SERIALIZER_CONTEXT_H -#define SQLPP11_SERIALIZER_CONTEXT_H - #include namespace sqlpp @@ -64,5 +63,3 @@ namespace sqlpp std::ostream& _os; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/simple_column.h b/include/sqlpp11/simple_column.h index f1304e6ab..7d5060e49 100644 --- a/include/sqlpp11/simple_column.h +++ b/include/sqlpp11/simple_column.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SIMPLE_COLUMN_H -#define SQLPP11_SIMPLE_COLUMN_H - #include namespace sqlpp @@ -60,5 +59,3 @@ namespace sqlpp return {c}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/single_table.h b/include/sqlpp11/single_table.h index 46ad77c36..ac5ec4828 100644 --- a/include/sqlpp11/single_table.h +++ b/include/sqlpp11/single_table.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SINGLE_TABLE_H -#define SQLPP11_SINGLE_TABLE_H - #include #include #include @@ -197,5 +196,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/some.h b/include/sqlpp11/some.h index ebef753df..1024f086f 100644 --- a/include/sqlpp11/some.h +++ b/include/sqlpp11/some.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SOME_H -#define SQLPP11_SOME_H - #include #include #include @@ -70,5 +69,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/sort_order.h b/include/sqlpp11/sort_order.h index 10795ef73..72d0ab6db 100644 --- a/include/sqlpp11/sort_order.h +++ b/include/sqlpp11/sort_order.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SORT_ORDER_H -#define SQLPP11_SORT_ORDER_H - #include namespace sqlpp @@ -65,5 +64,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/sqlite3/bind_result.h b/include/sqlpp11/sqlite3/bind_result.h index 614b68cc2..b47d99aac 100644 --- a/include/sqlpp11/sqlite3/bind_result.h +++ b/include/sqlpp11/sqlite3/bind_result.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_BIND_RESULT_H -#define SQLPP_SQLITE3_BIND_RESULT_H - #include #include #include @@ -319,5 +318,3 @@ namespace sqlpp #ifdef _MSC_VER #pragma warning(pop) #endif - -#endif diff --git a/include/sqlpp11/sqlite3/connection.h b/include/sqlpp11/sqlite3/connection.h index d5f1bb4a8..a84571434 100644 --- a/include/sqlpp11/sqlite3/connection.h +++ b/include/sqlpp11/sqlite3/connection.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2016, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_CONNECTION_H -#define SQLPP_SQLITE3_CONNECTION_H - #ifdef SQLPP_USE_SQLCIPHER #include #else @@ -624,5 +623,3 @@ namespace sqlpp #endif #include - -#endif diff --git a/include/sqlpp11/sqlite3/connection_config.h b/include/sqlpp11/sqlite3/connection_config.h index 4f7603dc0..f73bd0061 100644 --- a/include/sqlpp11/sqlite3/connection_config.h +++ b/include/sqlpp11/sqlite3/connection_config.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_CONNECTION_CONFIG_H -#define SQLPP_SQLITE3_CONNECTION_CONFIG_H - #include #include @@ -69,5 +68,3 @@ namespace sqlpp }; } } - -#endif diff --git a/include/sqlpp11/sqlite3/dynamic_libsqlite3.h b/include/sqlpp11/sqlite3/dynamic_libsqlite3.h index c5e4ecd7a..b1f0162c3 100644 --- a/include/sqlpp11/sqlite3/dynamic_libsqlite3.h +++ b/include/sqlpp11/sqlite3/dynamic_libsqlite3.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2017, Volker Aßmann * All rights reserved. @@ -23,8 +25,6 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DYNAMIC_LIBSQLITE3_H -#define DYNAMIC_LIBSQLITE3_H #ifdef SQLPP_USE_SQLCIPHER #include @@ -234,4 +234,3 @@ namespace sqlpp #undef DYNDEFINE #endif -#endif // DYNAMIC_LIBSQLITE3_H diff --git a/include/sqlpp11/sqlite3/export.h b/include/sqlpp11/sqlite3/export.h index 4f3875627..ec8ac458a 100644 --- a/include/sqlpp11/sqlite3/export.h +++ b/include/sqlpp11/sqlite3/export.h @@ -1,5 +1,4 @@ -#ifndef SQLPP_SQLITE3_EXPORT_H -#define SQLPP_SQLITE3_EXPORT_H +#pragma once #ifdef _WIN32 #ifdef SQLPP11_SHARED @@ -14,5 +13,3 @@ #else #define SQLPP11_SQLITE3_EXPORT #endif - -#endif diff --git a/include/sqlpp11/sqlite3/insert_or.h b/include/sqlpp11/sqlite3/insert_or.h index bbd92706d..00ded378a 100644 --- a/include/sqlpp11/sqlite3/insert_or.h +++ b/include/sqlpp11/sqlite3/insert_or.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_INSERT_OR_H -#define SQLPP_SQLITE3_INSERT_OR_H - #include #include #include @@ -150,5 +149,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/sqlite3/prepared_statement.h b/include/sqlpp11/sqlite3/prepared_statement.h index 30158a96a..bda11914a 100644 --- a/include/sqlpp11/sqlite3/prepared_statement.h +++ b/include/sqlpp11/sqlite3/prepared_statement.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_PREPARED_STATEMENT_H -#define SQLPP_SQLITE3_PREPARED_STATEMENT_H - #include #include #include @@ -254,5 +253,3 @@ namespace sqlpp #ifdef _MSC_VER #pragma warning(pop) #endif - -#endif diff --git a/include/sqlpp11/sqlite3/prepared_statement_handle.h b/include/sqlpp11/sqlite3/prepared_statement_handle.h index 6af1ab6f3..d06bce941 100644 --- a/include/sqlpp11/sqlite3/prepared_statement_handle.h +++ b/include/sqlpp11/sqlite3/prepared_statement_handle.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_PREPARED_STATEMENT_HANDLE_H -#define SQLPP_SQLITE3_PREPARED_STATEMENT_HANDLE_H - #include #include #include @@ -95,5 +94,3 @@ namespace sqlpp #ifdef _MSC_VER #pragma warning(pop) #endif - -#endif diff --git a/include/sqlpp11/sqlite3/serializer.h b/include/sqlpp11/sqlite3/serializer.h index 7bfa7b75a..b4b02cd16 100644 --- a/include/sqlpp11/sqlite3/serializer.h +++ b/include/sqlpp11/sqlite3/serializer.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_SERIALIZER_H -#define SQLPP_SQLITE3_SERIALIZER_H - #ifdef SQLPP_USE_SQLCIPHER #include #else @@ -136,5 +135,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/sqlite3/sqlite3.h b/include/sqlpp11/sqlite3/sqlite3.h index c53977a3d..10480258f 100644 --- a/include/sqlpp11/sqlite3/sqlite3.h +++ b/include/sqlpp11/sqlite3/sqlite3.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,11 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_H -#define SQLPP_SQLITE3_H - #include #include #include - -#endif diff --git a/include/sqlpp11/sqlpp11.h b/include/sqlpp11/sqlpp11.h index 19fe72447..cf0f845b6 100644 --- a/include/sqlpp11/sqlpp11.h +++ b/include/sqlpp11/sqlpp11.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SQLPP11_H -#define SQLPP11_SQLPP11_H - #include #include #include @@ -39,5 +38,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/statement.h b/include/sqlpp11/statement.h index 6da71842f..4b56d84ca 100644 --- a/include/sqlpp11/statement.h +++ b/include/sqlpp11/statement.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_STATEMENT_H -#define SQLPP11_STATEMENT_H - #include #include #include @@ -317,5 +316,3 @@ namespace sqlpp }; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/statement_fwd.h b/include/sqlpp11/statement_fwd.h index c626dba94..f29b5cb67 100644 --- a/include/sqlpp11/statement_fwd.h +++ b/include/sqlpp11/statement_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,13 +26,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_STATEMENT_FWD_H -#define SQLPP11_STATEMENT_FWD_H - namespace sqlpp { template struct statement_t; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/table.h b/include/sqlpp11/table.h index 169ced391..cb78cd817 100644 --- a/include/sqlpp11/table.h +++ b/include/sqlpp11/table.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TABLE_H -#define SQLPP11_TABLE_H - #include #include #include @@ -107,5 +106,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/table_alias.h b/include/sqlpp11/table_alias.h index 1be2e8cd1..5fe6770a1 100644 --- a/include/sqlpp11/table_alias.h +++ b/include/sqlpp11/table_alias.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TABLE_ALIAS_H -#define SQLPP11_TABLE_ALIAS_H - #include #include #include @@ -115,5 +114,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/table_ref.h b/include/sqlpp11/table_ref.h index 8a0c32a1d..afa6287cf 100644 --- a/include/sqlpp11/table_ref.h +++ b/include/sqlpp11/table_ref.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TABLE_REF_H -#define SQLPP11_TABLE_REF_H - #include namespace sqlpp @@ -51,5 +50,3 @@ namespace sqlpp return t; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/transaction.h b/include/sqlpp11/transaction.h index 353b461ee..9635edbd6 100644 --- a/include/sqlpp11/transaction.h +++ b/include/sqlpp11/transaction.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TRANSACTION_H -#define SQLPP11_TRANSACTION_H - #include #include #include @@ -121,5 +120,3 @@ namespace sqlpp return {db, report_unfinished_transaction, isolation}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/trim.h b/include/sqlpp11/trim.h index 9f8eac74c..3eec54925 100644 --- a/include/sqlpp11/trim.h +++ b/include/sqlpp11/trim.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * Copyright (c) 2017, Juan Dent @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TRIM_H -#define SQLPP11_TRIM_H - #include #include #include @@ -96,5 +95,3 @@ namespace sqlpp } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/type_traits.h b/include/sqlpp11/type_traits.h index 85d16f740..9769c6007 100644 --- a/include/sqlpp11/type_traits.h +++ b/include/sqlpp11/type_traits.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TYPE_TRAITS_H -#define SQLPP11_TYPE_TRAITS_H - #include #include #include @@ -567,5 +566,3 @@ namespace sqlpp template using serializer_context_of = typename serializer_context_of_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/unconditional.h b/include/sqlpp11/unconditional.h index 4d48b5733..5d148c683 100644 --- a/include/sqlpp11/unconditional.h +++ b/include/sqlpp11/unconditional.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,13 +26,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UNCONDITIONAL_H -#define SQLPP11_UNCONDITIONAL_H - namespace sqlpp { struct unconditional_t { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/union.h b/include/sqlpp11/union.h index 048435b56..5fa191419 100644 --- a/include/sqlpp11/union.h +++ b/include/sqlpp11/union.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UNION_H -#define SQLPP11_UNION_H - #include #include #include @@ -267,5 +266,3 @@ namespace sqlpp } */ } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/union_data.h b/include/sqlpp11/union_data.h index a2ff28887..bb3c8bcd6 100644 --- a/include/sqlpp11/union_data.h +++ b/include/sqlpp11/union_data.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UNION_DATA_H -#define SQLPP11_UNION_DATA_H - namespace sqlpp { template @@ -58,5 +57,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/union_flags.h b/include/sqlpp11/union_flags.h index c30e4ba19..e5c36d677 100644 --- a/include/sqlpp11/union_flags.h +++ b/include/sqlpp11/union_flags.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UNION_FLAGS_H -#define SQLPP11_UNION_FLAGS_H - #include #include #include @@ -60,5 +59,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/update.h b/include/sqlpp11/update.h index 860ed54c2..d7dff83ca 100644 --- a/include/sqlpp11/update.h +++ b/include/sqlpp11/update.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UPDATE_H -#define SQLPP11_UPDATE_H - #include #include #include @@ -112,5 +111,3 @@ namespace sqlpp return {blank_update_t().single_table(table)}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/update_list.h b/include/sqlpp11/update_list.h index a86f45f9f..3e06c1087 100644 --- a/include/sqlpp11/update_list.h +++ b/include/sqlpp11/update_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UPDATE_LIST_H -#define SQLPP11_UPDATE_LIST_H - #include #include #include @@ -303,5 +302,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/upper.h b/include/sqlpp11/upper.h index c07f74fee..0b26221e1 100644 --- a/include/sqlpp11/upper.h +++ b/include/sqlpp11/upper.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2023, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UPPER_H -#define SQLPP11_UPPER_H - #include #include #include @@ -95,5 +94,3 @@ namespace sqlpp } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/using.h b/include/sqlpp11/using.h index 2f8e20471..1518a3248 100644 --- a/include/sqlpp11/using.h +++ b/include/sqlpp11/using.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_USING_H -#define SQLPP11_USING_H - #include #include #include @@ -253,5 +252,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/value.h b/include/sqlpp11/value.h index 66d667182..35caada7b 100644 --- a/include/sqlpp11/value.h +++ b/include/sqlpp11/value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VALUE_H -#define SQLPP11_VALUE_H - #include #include #include @@ -47,5 +46,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/value_or_null.h b/include/sqlpp11/value_or_null.h index 52c3f10de..7bb1aae14 100644 --- a/include/sqlpp11/value_or_null.h +++ b/include/sqlpp11/value_or_null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VALUE_OR_NULL_H -#define SQLPP11_VALUE_OR_NULL_H - #include #include #include @@ -84,5 +83,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/value_type.h b/include/sqlpp11/value_type.h index 86148857e..7fa338c20 100644 --- a/include/sqlpp11/value_type.h +++ b/include/sqlpp11/value_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VALUE_TYPE_H -#define SQLPP11_VALUE_TYPE_H - #include #include @@ -35,4 +34,3 @@ namespace sqlpp template using value_type_t = value_type_of>; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/value_type_fwd.h b/include/sqlpp11/value_type_fwd.h index 943c354ae..e659cc8fe 100644 --- a/include/sqlpp11/value_type_fwd.h +++ b/include/sqlpp11/value_type_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VALUE_TYPE_FWD_H -#define SQLPP11_VALUE_TYPE_FWD_H - #include namespace sqlpp @@ -52,5 +51,3 @@ namespace sqlpp ; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/verbatim.h b/include/sqlpp11/verbatim.h index 65397cf7b..04cdbdda3 100644 --- a/include/sqlpp11/verbatim.h +++ b/include/sqlpp11/verbatim.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VERBATIM_H -#define SQLPP11_VERBATIM_H - #include #include #include @@ -74,5 +73,3 @@ namespace sqlpp return {std::move(s)}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/verbatim_table.h b/include/sqlpp11/verbatim_table.h index 46c459056..f111cbe58 100644 --- a/include/sqlpp11/verbatim_table.h +++ b/include/sqlpp11/verbatim_table.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VERBATIM_TABLE_H -#define SQLPP11_VERBATIM_TABLE_H - #include #include #include @@ -87,5 +86,3 @@ namespace sqlpp return {std::move(name)}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/where.h b/include/sqlpp11/where.h index 32cdb8c7c..9d3d854a8 100644 --- a/include/sqlpp11/where.h +++ b/include/sqlpp11/where.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_WHERE_H -#define SQLPP11_WHERE_H - #include #include #include @@ -417,5 +416,3 @@ namespace sqlpp return statement_t>().unconditionally(); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/with.h b/include/sqlpp11/with.h index 7c3644393..a6405e8c3 100644 --- a/include/sqlpp11/with.h +++ b/include/sqlpp11/with.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_WITH_H -#define SQLPP11_WITH_H - #include #include #include @@ -215,5 +214,3 @@ namespace sqlpp return {{cte...}}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/without_table_check.h b/include/sqlpp11/without_table_check.h index 3ab700102..2db10d118 100644 --- a/include/sqlpp11/without_table_check.h +++ b/include/sqlpp11/without_table_check.h @@ -1,5 +1,4 @@ -#ifndef SQLPP11_WITHOUT_TABLE_CHECK_H -#define SQLPP11_WITHOUT_TABLE_CHECK_H +#pragma once /* * Copyright (c) 2016-2016, Roland Bock @@ -59,5 +58,3 @@ namespace sqlpp return {expr}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/wrap_operand.h b/include/sqlpp11/wrap_operand.h index b14b03e34..114f9a96c 100644 --- a/include/sqlpp11/wrap_operand.h +++ b/include/sqlpp11/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_WRAP_OPERAND_H -#define SQLPP11_WRAP_OPERAND_H - namespace sqlpp { template @@ -38,5 +37,3 @@ namespace sqlpp template using wrap_operand_t = typename wrap_operand::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/wrong.h b/include/sqlpp11/wrong.h index 1ed403e02..c52f0d351 100644 --- a/include/sqlpp11/wrong.h +++ b/include/sqlpp11/wrong.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_WRONG_H -#define SQLPP11_WRONG_H - #include namespace sqlpp @@ -45,4 +44,3 @@ namespace sqlpp template using wrong_t = typename detail::wrong::type; } // namespace sqlpp -#endif diff --git a/scripts/ddl2cpp b/scripts/ddl2cpp index ab392feca..5876a383e 100755 --- a/scripts/ddl2cpp +++ b/scripts/ddl2cpp @@ -518,9 +518,9 @@ def escape_if_reserved(name): def beginHeader(pathToHeader, namespace, nsList): header = open(pathToHeader, "w") + print('#pragma once', file=header) + print('', file=header) print("// generated by " + " ".join(sys.argv), file=header) - print("#ifndef " + get_include_guard_name(namespace, pathToHeader), file=header) - print("#define " + get_include_guard_name(namespace, pathToHeader), file=header) print("", file=header) print("#include ", file=header) print("#include ", file=header) @@ -535,7 +535,6 @@ def beginHeader(pathToHeader, namespace, nsList): def endHeader(header, nsList): for ns in reversed(nsList): print("} // namespace " + ns, file=header) - print("#endif", file=header) header.close() diff --git a/scripts/sqlite2cpp.py b/scripts/sqlite2cpp.py index acc348440..8b61e7987 100644 --- a/scripts/sqlite2cpp.py +++ b/scripts/sqlite2cpp.py @@ -71,9 +71,9 @@ def main(): nsList = namespace.split('::') # start printing + print('#pragma once', file=header) + print('', file=header) print('// generated by ' + ' '.join(sys.argv), file=header) - print('#ifndef '+get_include_guard_name(namespace, pathToHeader), file=header) - print('#define '+get_include_guard_name(namespace, pathToHeader), file=header) print('', file=header) print('#include <' + INCLUDE + '/table.h>', file=header) print('#include <' + INCLUDE + '/data_types.h>', file=header) @@ -164,7 +164,6 @@ def main(): for ns in reversed(nsList): print('} // namespace ' + ns, file=header) - print('#endif', file=header) if (DataTypeError): print("Error: unsupported datatypes." ) diff --git a/tests/core/serialize/compare.h b/tests/core/serialize/compare.h index 3dec00397..52c75e482 100644 --- a/tests/core/serialize/compare.h +++ b/tests/core/serialize/compare.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_TEST_SERIALIZER_H -#define SQLPP_TEST_SERIALIZER_H - #include "MockDb.h" #include @@ -52,5 +51,3 @@ namespace assert_equal(lineNo, result, expected); } } - -#endif diff --git a/tests/core/static_asserts/AssertTables.h b/tests/core/static_asserts/AssertTables.h index d21dae535..bdc48bfc9 100644 --- a/tests/core/static_asserts/AssertTables.h +++ b/tests/core/static_asserts/AssertTables.h @@ -1,6 +1,6 @@ +#pragma once + // generated by ../scripts/ddl2cpp ../test_static_asserts/AssertTables.sql ../test_static_asserts/AssertTables test -#ifndef TEST_ASSERTTABLES_H -#define TEST_ASSERTTABLES_H #include #include @@ -310,4 +310,3 @@ namespace test }; }; } -#endif diff --git a/tests/core/usage/MockDb.h b/tests/core/usage/MockDb.h index 969473659..8a58cb346 100644 --- a/tests/core/usage/MockDb.h +++ b/tests/core/usage/MockDb.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MOCK_DB_H -#define SQLPP_MOCK_DB_H - #include #include #include @@ -495,5 +494,3 @@ struct MockSizeDb : public sqlpp::connection // temporary data store to verify the expected results were produced InternalMockData _mock_data; }; - -#endif diff --git a/tests/core/usage/Sample.h b/tests/core/usage/Sample.h index d01191499..e73f99308 100644 --- a/tests/core/usage/Sample.h +++ b/tests/core/usage/Sample.h @@ -1,5 +1,4 @@ -#ifndef TEST_SAMPLE_H -#define TEST_SAMPLE_H +#pragma once #include #include @@ -349,4 +348,3 @@ namespace test }; }; } // namespace test -#endif diff --git a/tests/core/usage/is_regular.h b/tests/core/usage/is_regular.h index 6c4fdf7e3..47fed5c5e 100644 --- a/tests/core/usage/is_regular.h +++ b/tests/core/usage/is_regular.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_IS_REGULAR_H -#define SQLPP_IS_REGULAR_H - #include namespace sqlpp @@ -58,5 +57,3 @@ namespace sqlpp ; }; } - -#endif diff --git a/tests/mysql/serialize/compare.h b/tests/mysql/serialize/compare.h index 9bf6b0591..7378ad96f 100644 --- a/tests/mysql/serialize/compare.h +++ b/tests/mysql/serialize/compare.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_TESTS_MYSQL_COMPARE_H -#define SQLPP_TESTS_MYSQL_COMPARE_H - #include #include @@ -68,5 +67,3 @@ namespace assert_equal(lineNo, result, expected); } } // namespace - -#endif diff --git a/tests/mysql/usage/TabJson.h b/tests/mysql/usage/TabJson.h index 40f80ead5..7772f49a0 100644 --- a/tests/mysql/usage/TabJson.h +++ b/tests/mysql/usage/TabJson.h @@ -1,6 +1,6 @@ +#pragma once + // generated by ../../sqlpp11/scripts/ddl2cpp ../tests/TabJson.sql ../tests/TabJson test -#ifndef TEST_TABJSON_H -#define TEST_TABJSON_H #include #include @@ -45,4 +45,3 @@ namespace test }; }; } // namespace test -#endif diff --git a/tests/mysql/usage/TabSample.h b/tests/mysql/usage/TabSample.h index 8bb8114a2..f846d94f7 100644 --- a/tests/mysql/usage/TabSample.h +++ b/tests/mysql/usage/TabSample.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_TAB_SAMPLE_H -#define SQLPP_TAB_SAMPLE_H - #include #include #include @@ -259,5 +258,3 @@ struct TabDateTime : sqlpp::table_t #include @@ -55,5 +54,3 @@ namespace assert_equal(lineNo, result, expected); } } // namespace - -#endif diff --git a/tests/postgresql/usage/BlobSample.h b/tests/postgresql/usage/BlobSample.h index b71f14c0d..5cfac5cbb 100644 --- a/tests/postgresql/usage/BlobSample.h +++ b/tests/postgresql/usage/BlobSample.h @@ -1,6 +1,6 @@ +#pragma once + // generated by scripts/ddl2cpp tests/postgresql/usage/BlobSample.sql tests/postgresql/usage/BlobSample model -#ifndef MODEL_BLOBSAMPLE_H -#define MODEL_BLOBSAMPLE_H #include #include @@ -62,4 +62,3 @@ namespace model }; }; } // namespace model -#endif diff --git a/tests/postgresql/usage/TabBar.h b/tests/postgresql/usage/TabBar.h index e9c299af7..6d668c4ba 100644 --- a/tests/postgresql/usage/TabBar.h +++ b/tests/postgresql/usage/TabBar.h @@ -1,5 +1,4 @@ -#ifndef MODEL_TABBAR_H -#define MODEL_TABBAR_H +#pragma once #include #include @@ -57,5 +56,3 @@ namespace model }; }; } - -#endif diff --git a/tests/postgresql/usage/TabDateTime.h b/tests/postgresql/usage/TabDateTime.h index 597eeb864..85a6b44f0 100644 --- a/tests/postgresql/usage/TabDateTime.h +++ b/tests/postgresql/usage/TabDateTime.h @@ -1,5 +1,4 @@ -#ifndef MODEL_TABDATETIME_H -#define MODEL_TABDATETIME_H +#pragma once #include #include @@ -108,5 +107,3 @@ namespace model }; }; } - -#endif diff --git a/tests/postgresql/usage/TabFoo.h b/tests/postgresql/usage/TabFoo.h index 95cbe9a12..cf5d1b587 100644 --- a/tests/postgresql/usage/TabFoo.h +++ b/tests/postgresql/usage/TabFoo.h @@ -1,5 +1,4 @@ -#ifndef MODEL_TABFOO_H -#define MODEL_TABFOO_H +#pragma once #include #include @@ -183,5 +182,3 @@ namespace model }; }; } - -#endif diff --git a/tests/postgresql/usage/TabSample.h b/tests/postgresql/usage/TabSample.h index 54256ae53..c3037d0ec 100644 --- a/tests/postgresql/usage/TabSample.h +++ b/tests/postgresql/usage/TabSample.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_TAB_SAMPLE_H -#define SQLPP_TAB_SAMPLE_H - #include #include #include @@ -244,5 +243,3 @@ struct TabDateTime : sqlpp::table_t namespace sqlpp @@ -75,5 +73,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/tests/sqlite3/serialize/compare.h b/tests/sqlite3/serialize/compare.h index e821c124a..f4483379a 100644 --- a/tests/sqlite3/serialize/compare.h +++ b/tests/sqlite3/serialize/compare.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_TESTS_SQLITE3_COMPARE_H -#define SQLPP_TESTS_SQLITE3_COMPARE_H - #include #include @@ -59,5 +58,3 @@ namespace assert_equal(lineNo, result, expected); } } // namespace - -#endif diff --git a/tests/sqlite3/usage/BlobSample.h b/tests/sqlite3/usage/BlobSample.h index 25cce2829..a37853f0c 100644 --- a/tests/sqlite3/usage/BlobSample.h +++ b/tests/sqlite3/usage/BlobSample.h @@ -1,6 +1,6 @@ +#pragma once + // generated by ../../sqlpp11/scripts/ddl2cpp -fail-on-parse BlobSample.sql BlobSample blob -#ifndef BLOB_BLOBSAMPLE_H -#define BLOB_BLOBSAMPLE_H #include #include @@ -75,4 +75,3 @@ struct BlobSample : sqlpp::table_t #include @@ -75,5 +75,3 @@ struct FpSample : sqlpp::table_t }; }; }; - -#endif diff --git a/tests/sqlite3/usage/IntegralSample.h b/tests/sqlite3/usage/IntegralSample.h index 75c3fee5a..207dec54d 100644 --- a/tests/sqlite3/usage/IntegralSample.h +++ b/tests/sqlite3/usage/IntegralSample.h @@ -1,5 +1,4 @@ -#ifndef INTEGRAL_SAMPLE_H -#define INTEGRAL_SAMPLE_H +#pragma once #include #include @@ -75,5 +74,3 @@ struct IntegralSample : sqlpp::table_t #include #include @@ -246,5 +245,3 @@ struct TabDateTime : sqlpp::table_t