Changeset 2099


Ignore:
Timestamp:
01/03/2008 22:44:25 (4 years ago)
Author:
chris
Message:

Workaround for (buggy?) gcc not finding inherited Main method on
Windows.

Location:
box/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupDaemon.h

    r1891 r2099  
    6666                int ProcessOption(signed int option); 
    6767                int Main(const std::string &rConfigFileName); 
     68 
     69                // This shouldn't be here, but apparently gcc on 
     70                // Windows has no idea about inherited methods... 
     71                virtual int Main(const char *DefaultConfigFile, int argc, 
     72                        const char *argv[]) 
     73                { 
     74                        return Daemon::Main(DefaultConfigFile, argc, argv); 
     75                } 
    6876        #endif 
    6977 
  • box/trunk/lib/server/Daemon.h

    r1891 r2099  
    4141public: 
    4242 
    43         int Main(const char *DefaultConfigFile, int argc, const char *argv[]); 
     43        virtual int Main(const char *DefaultConfigFile, int argc, 
     44                const char *argv[]); 
    4445 
    4546        /* override this Main() if you want custom option processing: */ 
Note: See TracChangeset for help on using the changeset viewer.