1
0
Fork 0

Apply patch 1329540: Fixes compilation on GCC4.1 Changed order of definitions as well.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2349
This commit is contained in:
Peter Veenstra 2005-10-19 06:40:33 +00:00
parent 9d1cf58132
commit 593e664e8b

View file

@ -30,12 +30,6 @@
#endif
class Program;
typedef void (PROGRAMS_Main)(Program * * make);
void PROGRAMS_MakeFile(char * name,PROGRAMS_Main * main);
class Program {
public:
Program();
@ -47,12 +41,15 @@ public:
CommandLine * cmd;
DOS_PSP * psp;
virtual void Run(void)=0;
bool Program::GetEnvStr(const char * entry,std::string & result);
bool GetEnvStr(const char * entry,std::string & result);
bool GetEnvNum(Bitu num,std::string & result);
Bitu GetEnvCount(void);
bool SetEnv(const char * entry,const char * new_string);
void WriteOut(const char * format,...); /* Write to standard output */
void WriteOut(const char * format,...); /* Write to standard output */
};
typedef void (PROGRAMS_Main)(Program * * make);
void PROGRAMS_MakeFile(char * name,PROGRAMS_Main * main);
#endif