--- parser3/src/include/Attic/pa_db_table.h 2001/10/27 10:14:45 1.4 +++ parser3/src/include/Attic/pa_db_table.h 2001/10/29 08:23:49 1.7 @@ -4,7 +4,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_db_table.h,v 1.4 2001/10/27 10:14:45 paf Exp $ + $Id: pa_db_table.h,v 1.7 2001/10/29 08:23:49 paf Exp $ */ #ifndef PA_DB_TABLE_H @@ -14,8 +14,11 @@ #include "pa_globals.h" #include "pa_pool.h" -#ifdef HAVE_DB_H +#ifdef DB2 # include +# if DB_VERSION_MAJOR != 2 +# error Parser needs DB 2.x.x version of libdb to compile +# endif #endif // defines @@ -34,9 +37,9 @@ class DB_Cursor; /// DB table. handy wrapper around low level calls class DB_Table : public Pooled { - friend DB_Table_ptr; - friend DB_Transaction; - friend DB_Cursor; + friend class DB_Table_ptr; + friend class DB_Transaction; + friend class DB_Cursor; public: DB_Table(Pool& apool, const String& afile_name, DB_Connection& aconnection);