From 68cb8232d851614b32389d634a7f4fa4576c8d58 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 9 Aug 2010 13:27:54 +0000 Subject: [PATCH] Win64 builds: search for DLLs in bin64/ git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10381 d7cf8633-e32d-0410-b094-e92efae38249 --- sys_shared.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys_shared.c b/sys_shared.c index 2ae309c1..903bee1e 100644 --- a/sys_shared.c +++ b/sys_shared.c @@ -3,6 +3,10 @@ #define SUPPORTDLL #ifdef WIN32 +# ifdef _WIN64 +# define _WIN32_WINNT 0x0502 + // for SetDllDirectory +# endif # include # include // timeGetTime # include // localtime @@ -127,7 +131,13 @@ notfound: { Con_DPrintf (" \"%s\"", dllnames[i]); #ifdef WIN32 +# ifdef _WIN64 + SetDllDirectory("bin64"); +# endif dllhandle = LoadLibrary (dllnames[i]); +# ifdef _WIN64 + SetDllDirectory(NULL); +# endif #else dllhandle = dlopen (dllnames[i], RTLD_LAZY | RTLD_GLOBAL); #endif -- 2.39.2