Răsfoiți Sursa

Linux compile fixes.

Cameron Hart 12 ani în urmă
părinte
comite
efe93831fd
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      include/bx/os.h

+ 2 - 2
include/bx/os.h

@@ -56,7 +56,7 @@ namespace bx
 #if BX_PLATFORM_WINDOWS
 #if BX_PLATFORM_WINDOWS
 		FreeLibrary( (HMODULE)_handle);
 		FreeLibrary( (HMODULE)_handle);
 #else
 #else
-		::dlclose(_lib);
+		::dlclose(_handle);
 #endif // BX_PLATFORM_
 #endif // BX_PLATFORM_
 	}
 	}
 
 
@@ -74,7 +74,7 @@ namespace bx
 #if BX_PLATFORM_WINDOWS
 #if BX_PLATFORM_WINDOWS
 		SetEnvironmentVariableA(_name, _value);
 		SetEnvironmentVariableA(_name, _value);
 #else
 #else
-		setenv(_name, _value, 1);
+		::setenv(_name, _value, 1);
 #endif // BX_PLATFORM_
 #endif // BX_PLATFORM_
 	}
 	}