diff --git a/lib/check.h b/lib/check.h index b438c79bf..ff11d8587 100644 --- a/lib/check.h +++ b/lib/check.h @@ -46,7 +46,7 @@ public: { } virtual ~Check() { -#ifndef DJGPP +#if !defined(DJGPP) && !defined(__sun) instances().remove(this); #endif }