Merge pull request #1680 from Biswa96/fix-mingw

Fix some build issues with mingw
This commit is contained in:
starkos 2021-08-20 06:33:19 -04:00 committed by GitHub
commit b3de107f4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -36,7 +36,8 @@
#if !defined(HAVE_STRUCT_POLLFD) && \
!defined(HAVE_SYS_POLL_H) && \
!defined(HAVE_POLL_H)
!defined(HAVE_POLL_H) && \
!defined(POLLIN)
#define POLLIN 0x01
#define POLLPRI 0x02

View File

@ -55,7 +55,9 @@ int os_getversion(lua_State* L)
#if defined(PLATFORM_WINDOWS)
#ifdef _MSC_VER
#pragma comment(lib, "version.lib")
#endif
int getKernelVersion(struct OsVersionInfo* info)
{

View File

@ -9,7 +9,7 @@
#include "premake.h"
#ifdef _WIN32
#include <Windows.h>
#include <windows.h>
#endif
int os_isdir(lua_State* L)
@ -17,7 +17,7 @@ int os_isdir(lua_State* L)
struct stat buf;
const char* path = luaL_checkstring(L, 1);
#ifdef _WIN32
int attr;
DWORD attr;
wchar_t wide_path[PATH_MAX];
if (MultiByteToWideChar(CP_UTF8, 0, path, -1, wide_path, PATH_MAX) == 0)

View File

@ -7,7 +7,7 @@
#include "premake.h"
#if PLATFORM_WINDOWS
#include <Objbase.h>
#include <objbase.h>
#endif