mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
merged in compiler change for amxmod_compat
This commit is contained in:
parent
c287985a66
commit
65eb0279b2
@ -236,6 +236,15 @@ static stringlist includepaths = {NULL, NULL}; /* directory list for include fi
|
||||
|
||||
SC_FUNC stringlist *insert_path(char *path)
|
||||
{
|
||||
char *extra_path = malloc(strlen(path) + 16);
|
||||
strcpy(extra_path, path);
|
||||
#if defined __linux__
|
||||
strcat(extra_path, "/amxmod_compat/");
|
||||
#else if defined WIN32 || defined _WIN32
|
||||
strcat(extra_path, "\\amxmod_compat\\");
|
||||
#endif
|
||||
insert_string(&includepaths, extra_path);
|
||||
free(extra_path);
|
||||
return insert_string(&includepaths,path);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user