Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--premake4.lua3
-rw-r--r--src/host/os_uuid.c10
2 files changed, 4 insertions, 9 deletions
diff --git a/premake4.lua b/premake4.lua
index 4ac2663..1c2f553 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -52,6 +52,9 @@
configuration "vs2005"
defines {"_CRT_SECURE_NO_DEPRECATE" }
+ configuration "windows"
+ links { "ole32" }
+
configuration "linux"
defines { "LUA_USE_POSIX", "LUA_USE_DLOPEN" }
links { "m", "dl" }
diff --git a/src/host/os_uuid.c b/src/host/os_uuid.c
index c252179..b06b29b 100644
--- a/src/host/os_uuid.c
+++ b/src/host/os_uuid.c
@@ -5,7 +5,7 @@
*/
#include "premake.h"
-
+#include <Objbase.h>
int os_uuid(lua_State* L)
{
@@ -13,15 +13,7 @@ int os_uuid(lua_State* L)
char uuid[38];
#if PLATFORM_WINDOWS
-
- static int (__stdcall *CoCreateGuid)(char*) = NULL;
- if (CoCreateGuid == NULL)
- {
- HMODULE hOleDll = LoadLibrary("OLE32.DLL");
- CoCreateGuid = (int(__stdcall*)(char*))GetProcAddress(hOleDll, "CoCreateGuid");
- }
CoCreateGuid((char*)bytes);
-
#else
int result;