/* dtor.c (emx+gcc) -- Copyright (c) 1993-1998 by Eberhard Mattes */

extern int __DTOR_LIST__, __eh_frame__;
extern void __ctordtorTerm1 (int *ptr);
extern void __eh_frame_term (int *ptr);

void __ctordtorTerm (void)
{
  static int done;

  if (!done)
    {
      done = 1;
      __ctordtorTerm1 (&__DTOR_LIST__);
#if 0
      /* OS/2 doesn't guarantee correct unloading sequence of DLLs,
         therefore we cannot do this. */
      __eh_frame_term (&__eh_frame__);
#endif
    }
}
