aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/database.hxx7
1 files changed, 6 insertions, 1 deletions
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 <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