From afad07f94fb20973e2247809a5d9bc5692820ce7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 23 Sep 2010 09:35:45 +0200 Subject: Add include guard to database.hxx --- hello/database.hxx | 7 ++++++- mapping/database.hxx | 7 ++++++- template/database.hxx | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/hello/database.hxx b/hello/database.hxx index 624bf1b..7436eec 100644 --- a/hello/database.hxx +++ b/hello/database.hxx @@ -3,9 +3,12 @@ // copyright : not copyrighted - public domain // -// Create concrete database based on the DATABASE_* macros. +// Create concrete database instance based on the DATABASE_* macros. // +#ifndef DATABASE_HXX +#define DATABASE_HXX + #include #include // std::auto_ptr #include // std::exit @@ -39,3 +42,5 @@ create_database (int& argc, char* argv[]) return auto_ptr (new mysql::database (argc, argv)); #endif } + +#endif // DATABASE_HXX diff --git a/mapping/database.hxx b/mapping/database.hxx index d668b89..e0b2ed4 100644 --- a/mapping/database.hxx +++ b/mapping/database.hxx @@ -3,9 +3,12 @@ // copyright : not copyrighted - public domain // -// Create concrete database based on the DATABASE_* macros. +// Create concrete database instance based on the DATABASE_* macros. // +#ifndef DATABASE_HXX +#define DATABASE_HXX + #include #include // std::auto_ptr #include // std::exit @@ -39,3 +42,5 @@ create_database (int& argc, char* argv[]) return auto_ptr (new mysql::database (argc, argv)); #endif } + +#endif // DATABASE_HXX diff --git a/template/database.hxx b/template/database.hxx index 3009b1c..2170141 100644 --- a/template/database.hxx +++ b/template/database.hxx @@ -3,9 +3,12 @@ // copyright : not copyrighted - public domain // -// Create concrete database based on the DATABASE_* macros. +// Create concrete database instance based on the DATABASE_* macros. // +#ifndef DATABASE_HXX +#define DATABASE_HXX + #include #include // std::auto_ptr #include // std::exit @@ -39,3 +42,5 @@ create_database (int& argc, char* argv[]) return auto_ptr (new mysql::database (argc, argv)); #endif } + +#endif // DATABASE_HXX -- cgit v1.1