Fixed module loading on OS X (bug 5601, r=dvander).

Former-commit-id: 3d0277c1f0
This commit is contained in:
Scott Ehlert 2013-02-24 00:45:53 -06:00
parent fe2e9dbfc2
commit e3d750597a

View File

@ -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