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:
xavi92 2024-08-12 21:40:51 +00:00
parent ef21cb35d7
commit 9b5aa6ad58
3 changed files with 3 additions and 0 deletions

View file

@ -10,6 +10,7 @@
#include "portability.h"
#include <windows.h>
#include <winerror.h>
#include <shellapi.h>
#include <cerrno>

View file

@ -87,6 +87,7 @@ typedef struct ModInfoNC {
typedef void* tSOHandle;
#ifdef WIN32
#include <windows.h>
#define SOHandle(h) ((HMODULE)(h))
#else
#define SOHandle(h) ((void*)(h))

View file

@ -29,6 +29,7 @@
#include "tgf.hpp"
#ifdef WIN32
#include <windows.h>
# define dlopen(pszShLibFileName) (void*)LoadLibrary(pszShLibFileName)
# define dlsym(pvHandle, pszFuncName) GetProcAddress((HMODULE)pvHandle, pszFuncName)
# define dlclose(pvHandle) !FreeLibrary((HMODULE)pvHandle)