long xx = XLOG2DEVMAC(x);
        long yy = YLOG2DEVMAC(y);
-       
+#if TARGET_CARBON      
        bool useDrawThemeText = ( DrawThemeTextBox != (void*) kUnresolvedCFragSymbolAddress ) ;
-  
+#endif
        MacInstallFont() ;
     if ( 0 ) 
     {
        FontInfo fi ;
        ::GetFontInfo( &fi ) ;
        
+#if TARGET_CARBON      
        if ( !useDrawThemeText )
+#endif
            yy += fi.ascent ;
            
        ::MoveTo( xx , yy );
        {
                if( text[i] == 13 || text[i] == 10)
                {
+#if TARGET_CARBON
                if ( useDrawThemeText )
                {
                    Rect frame = { yy + line*(fi.descent + fi.ascent + fi.leading)  ,xx , yy + (line+1)*(fi.descent + fi.ascent + fi.leading) , xx + 1000 } ;
                    line++ ;
                 }
                    else
+#endif
                    {
                                ::DrawText( text , laststop , i - laststop ) ;
                    line++ ;
                }
                i++ ;
        }
+#if TARGET_CARBON
         if ( useDrawThemeText )
        {
            Rect frame = { yy + line*(fi.descent + fi.ascent + fi.leading)  ,xx , yy + (line+1)*(fi.descent + fi.ascent + fi.leading) , xx + 1000 } ;
             CFRelease( mString ) ;
         }
         else
+#endif
         {      
            ::DrawText( text , laststop , i - laststop ) ;
         }
 
 
        long xx = XLOG2DEVMAC(x);
        long yy = YLOG2DEVMAC(y);
-       
+#if TARGET_CARBON      
        bool useDrawThemeText = ( DrawThemeTextBox != (void*) kUnresolvedCFragSymbolAddress ) ;
-  
+#endif
        MacInstallFont() ;
     if ( 0 ) 
     {
        FontInfo fi ;
        ::GetFontInfo( &fi ) ;
        
+#if TARGET_CARBON      
        if ( !useDrawThemeText )
+#endif
            yy += fi.ascent ;
            
        ::MoveTo( xx , yy );
        {
                if( text[i] == 13 || text[i] == 10)
                {
+#if TARGET_CARBON
                if ( useDrawThemeText )
                {
                    Rect frame = { yy + line*(fi.descent + fi.ascent + fi.leading)  ,xx , yy + (line+1)*(fi.descent + fi.ascent + fi.leading) , xx + 1000 } ;
                    line++ ;
                 }
                    else
+#endif
                    {
                                ::DrawText( text , laststop , i - laststop ) ;
                    line++ ;
                }
                i++ ;
        }
+#if TARGET_CARBON
         if ( useDrawThemeText )
        {
            Rect frame = { yy + line*(fi.descent + fi.ascent + fi.leading)  ,xx , yy + (line+1)*(fi.descent + fi.ascent + fi.leading) , xx + 1000 } ;
             CFRelease( mString ) ;
         }
         else
+#endif
         {      
            ::DrawText( text , laststop , i - laststop ) ;
         }