瀏覽代碼

Merge pull request #12 from bitshifter/master

Linux compile fixes
Branimir Karadžić 12 年之前
父節點
當前提交
159c741eb0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/bx/os.h

+ 2 - 2
include/bx/os.h

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