diff --git a/src/shared/idpool.pas b/src/shared/idpool.pas
index 7817cc160b259ff91a7eef539205e1276ed1b746..9e0a0124e810bff02b7a74d79d6cf1e5305a1c76 100644 (file)
--- a/src/shared/idpool.pas
+++ b/src/shared/idpool.pas
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*)
{$INCLUDE a_modes.inc}
-{$DEFINE IDPOOL_CHECKS}
+{.$DEFINE IDPOOL_CHECKS}
unit idpool;
interface
+{$IFDEF USE_MEMPOOL}
+uses
+ mempool;
+{$ENDIF}
+
+
// ////////////////////////////////////////////////////////////////////////// //
type
//TODO: implement getting n sequential ids
- TIdPool = class(TObject)
+ TIdPool = class{$IFDEF USE_MEMPOOL}(TPoolObject){$ENDIF}
public
const InvalidId = $ffffffff;