mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Linux implementation. Include changes for gcc x64.
This commit is contained in:
parent
4e52824a42
commit
4e9034854d
56 changed files with 1108 additions and 3075 deletions
|
|
@ -27,9 +27,9 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
|
||||
char *stristr(char *szStringToBeSearched, const char *szSubstringToSearchFor)
|
||||
const char *stristr(const char *szStringToBeSearched, const char *szSubstringToSearchFor)
|
||||
{
|
||||
char *pPos = NULL;
|
||||
const char *pPos = NULL;
|
||||
char *szCopy1 = NULL;
|
||||
char *szCopy2 = NULL;
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ char *stristr(char *szStringToBeSearched, const char *szSubstringToSearchFor)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
pPos = strstr(szCopy1, szCopy2);
|
||||
pPos = strstr((const char*)szCopy1, (const char*)szCopy2);
|
||||
|
||||
if ( pPos != NULL ) {
|
||||
// map to the original string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue