From e3d750597a695ea1f795fb5f4ee3ed21f2a9b220 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Sun, 24 Feb 2013 00:45:53 -0600 Subject: [PATCH] Fixed module loading on OS X (bug 5601, r=dvander). Former-commit-id: 3d0277c1f01b71fa8401a7f815e09bebfb0f73cf --- amxmodx/modules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index 45dcc1ed..23e6a6ff 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -835,7 +835,7 @@ bool ConvertModuleName(const char *pathString, String &path) if (strncmp(ptr, "_amxx", 5) == 0) { char *p = ptr + 5; - if (strncmp(p, ".dll", 4) == 0) + if (strncmp(p, ".dll", 4) == 0 || strncmp(p, ".dylib", 6) == 0) { foundAmxx = true; break; @@ -881,7 +881,7 @@ bool ConvertModuleName(const char *pathString, String &path) path.append(PATH_SEP_CHAR); path.append(tmpname); path.append("_amxx"); -#if defined(__linux__) || defined(__APPLE__) +#if defined(__linux__) #if defined AMD64 || PAWN_CELL_SIZE==64 path.append("_amd64"); #else