// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "timer.h"
 #endif
 
     desc->shotTime = when;
     desc->running = TRUE;
 
+#ifndef __WXMGL__
     wxLogTrace( wxT("timer"),
                 wxT("queued timer %p at tick %") wxLongLongFmtSpec _T("d"), 
                desc->timer,  when.GetValue());
+#endif
 
     if ( m_timers )
     {
             
             if ( !timerDeleted )
             {
+#ifndef __WXMGL__
                 wxLogTrace( wxT("timer"),
                             wxT("notified timer %p sheduled for %") wxLongLongFmtSpec _T("d"), 
                             desc->timer, desc->shotTime.GetValue() );
+#endif
 
                 desc->deleteFlag = NULL;
                 if ( !oneShot )