VirtualBox

Ticket #936: gcc-4.3.patch

File gcc-4.3.patch, 3.0 kB (added by cartman, 10 months ago)
  • src/VBox/Main/VMMDevInterface.cpp

    old new  
    2727#include <VBox/VBoxGuest.h> 
    2828#include <VBox/shflsvc.h> 
    2929#include <iprt/asm.h> 
     30#include <stdio.h> 
    3031 
    3132#ifdef VBOX_HGCM 
    3233#include "hgcm/HGCM.h" 
  • src/VBox/Additions/linux/xclient/main.cpp

    old new  
    3030#include <sys/types.h> 
    3131#include <unistd.h> 
    3232#include <getopt.h> 
     33#include <stdlib.h> 
    3334 
    3435#include <X11/Xlib.h> 
    3536#include <X11/Intrinsic.h> 
  • src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    old new  
    2828#include "VBoxRegistrationDlg.h" 
    2929#endif 
    3030 
     31#include <stdlib.h> 
     32 
    3133#include <qapplication.h> 
    3234#include <qmessagebox.h> 
    3335#include <qpixmap.h> 
  • src/VBox/Frontends/VirtualBox/src/HappyHttp.cpp

    old new  
    6868#include <cstdarg> 
    6969#include <assert.h> 
    7070 
     71#include <locale> 
    7172#include <string> 
    7273#include <vector> 
    7374#include <string> 
     
    8687const char* GetWinsockErrorString( int err ); 
    8788#endif 
    8889 
     90/* 
     91 * structs needed for std::transform() 
     92 * See: http://gcc.gnu.org/onlinedocs/libstdc++/22_locale/howto.html#7 
     93 */ 
     94struct ToUpper { 
     95  ToUpper(std::locale const& l) : loc(l) {;} 
     96  char operator() (char c) const  { return std::toupper(c,loc); } 
     97private: 
     98  std::locale const& loc; 
     99}; 
     100 
     101struct ToLower { 
     102  ToLower(std::locale const& l) : loc(l) {;} 
     103  char operator() (char c) const  { return std::tolower(c,loc); } 
     104private: 
     105  std::locale const& loc; 
     106}; 
    89107 
    90108//--------------------------------------------------------------------- 
    91109// Helper functions 
     
    537555 
    538556const char* Response::getheader( const char* name ) const 
    539557{ 
     558    ToLower __tolower(std::locale::classic()); 
     559 
    540560    std::string lname( name ); 
    541     std::transform( lname.begin(), lname.end(), lname.begin(), tolower ); 
     561    std::transform( lname.begin(), lname.end(), lname.begin(), __tolower ); 
    542562 
    543563    std::map< std::string, std::string >::const_iterator it = m_Headers.find( lname ); 
    544564    if( it == m_Headers.end() ) 
  • src/recompiler/InnoTek/op-validate.sed

    old new  
    6363/\.Lfe[0-9][0-9]*:/d 
    6464/\.LFE[0-9][0-9]*:/d 
    6565/size[[:space:]]/d 
     66/p2align[[:space:]]/d 
     67/^[/#][[:space:]]0[[:space:]]\"\"[[:space:]]2[[:space:]]*$/d 
    6668/^[/#]NO_APP[[:space:]]*$/d 
    6769/^$/!b bad 
    6870b end 
Download the file.

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy