From d7a74ebb94580f323bca9723daa86447ac213a1e Mon Sep 17 00:00:00 2001 From: xPaw Date: Sat, 19 Jul 2014 18:12:15 +0300 Subject: [PATCH] :fire: Remove amxmod compat hack from the compiler --- compiler/libpc300/sclist.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/compiler/libpc300/sclist.c b/compiler/libpc300/sclist.c index cf1f7d09..0875fd26 100755 --- a/compiler/libpc300/sclist.c +++ b/compiler/libpc300/sclist.c @@ -236,15 +236,6 @@ 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__ || defined __APPLE__ - strcat(extra_path, "/amxmod_compat/"); -#elif defined WIN32 || defined _WIN32 - strcat(extra_path, "\\amxmod_compat\\"); -#endif - insert_string(&includepaths, extra_path); - free(extra_path); return insert_string(&includepaths,path); }