aboutsummaryrefslogtreecommitdiff
path: root/mapping
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-23 09:35:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-23 09:35:45 +0200
commitafad07f94fb20973e2247809a5d9bc5692820ce7 (patch)
treea48839699c1d8c0f724d8e4bfbf489165f8f83b9 /mapping
parent2f17222fd6b2f3cfa251e57daf67ee58d25d6e43 (diff)
Add include guard to database.hxx
Diffstat (limited to 'mapping')
-rw-r--r--mapping/database.hxx7
1 files changed, 6 insertions, 1 deletions
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 <string>
#include <memory> // std::auto_ptr
#include <cstdlib> // std::exit
@@ -39,3 +42,5 @@ create_database (int& argc, char* argv[])
return auto_ptr<database> (new mysql::database (argc, argv));
#endif
}
+
+#endif // DATABASE_HXX