Merge pull request #1680 from Biswa96/fix-mingw
Fix some build issues with mingw
This commit is contained in:
commit
b3de107f4c
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "premake.h"
|
||||
|
||||
#if PLATFORM_WINDOWS
|
||||
#include <Objbase.h>
|
||||
#include <objbase.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user