Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
37 user(s) are online (29 user(s) are browsing Forums)

Members: 0
Guests: 37

more...

Support us!

Headlines

Report message:*
 

Re: Porting to AmigaOS4 thread

Subject: Re: Porting to AmigaOS4 thread
by Raziel on 2020/11/22 15:45:05

@jabirulo

With your changes i now get htis
C++      backends/dialogs/amigaos/amigaos-dialogs.o
backends
/dialogs/amigaos/amigaos-dialogs.cppIn member function 'char* AmigaOSDialogManager::utf8ToLocal(char*)':
backends/dialogs/amigaos/amigaos-dialogs.cpp:69:33errortoo many arguments to function 'char* strcpy(char*, const char*)'
      
strcpy(outdst_strdstlen);
                                 ^
In file included from /SDK/newlib/include/stdio.h:29,
                 
from ./common/scummsys.h:118,
                 
from backends/dialogs/amigaos/amigaos-dialogs.cpp:28:
/
SDK/newlib/include/string.h:31:8notedeclared here
 char  
*_EXFUN(strcpy,(char *, const char *));
        ^~~~~~
backends/dialogs/amigaos/amigaos-dialogs.cppIn member function 'virtual Common::DialogManager::DialogResult AmigaOSDialogManager::showFileBrowser(const Common::U32String&, Common::FSNode&, bool)':
backends/dialogs/amigaos/amigaos-dialogs.cpp:111:56warningcast from type 'const value_type*' {aka 'const char*'to type 'char*' casts away qualifiers [-Wcast-qual]
   
char *newTitle utf8ToLocal((char *)utf8Title.c_str());
                                                        ^
gmake: *** [backends/dialogs/amigaos/amigaos-dialogs.oError 1


I did not check what happens when i cancel, but i guess it's the same as with when i simply close the asl window, right?
Then nothing happened, no crash

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project