Add missing #include <windows.h>
Any references to Win32-specific symbols should be precluded with this header file to avoid undefined reference errors. git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9534 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: a32d06d62773b99b8878b9dbecb6425c2cf7fcf5 Former-commit-id: a16cf8bd4dcd47c1fc82904138b9daa8a9737931
This commit is contained in:
parent
ef21cb35d7
commit
9b5aa6ad58
3 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
#include "portability.h"
|
#include "portability.h"
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
#include <winerror.h>
|
#include <winerror.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
|
|
|
@ -87,6 +87,7 @@ typedef struct ModInfoNC {
|
||||||
typedef void* tSOHandle;
|
typedef void* tSOHandle;
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
#include <windows.h>
|
||||||
#define SOHandle(h) ((HMODULE)(h))
|
#define SOHandle(h) ((HMODULE)(h))
|
||||||
#else
|
#else
|
||||||
#define SOHandle(h) ((void*)(h))
|
#define SOHandle(h) ((void*)(h))
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include "tgf.hpp"
|
#include "tgf.hpp"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
#include <windows.h>
|
||||||
# define dlopen(pszShLibFileName) (void*)LoadLibrary(pszShLibFileName)
|
# define dlopen(pszShLibFileName) (void*)LoadLibrary(pszShLibFileName)
|
||||||
# define dlsym(pvHandle, pszFuncName) GetProcAddress((HMODULE)pvHandle, pszFuncName)
|
# define dlsym(pvHandle, pszFuncName) GetProcAddress((HMODULE)pvHandle, pszFuncName)
|
||||||
# define dlclose(pvHandle) !FreeLibrary((HMODULE)pvHandle)
|
# define dlclose(pvHandle) !FreeLibrary((HMODULE)pvHandle)
|
||||||
|
|
Loading…
Reference in a new issue