git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10381
d7cf8633-e32d-0410-b094-
e92efae38249
#define SUPPORTDLL
#ifdef WIN32
+# ifdef _WIN64
+# define _WIN32_WINNT 0x0502
+ // for SetDllDirectory
+# endif
# include <windows.h>
# include <mmsystem.h> // timeGetTime
# include <time.h> // localtime
{
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