Windows fixes.
This commit is contained in:
parent
4d325c447e
commit
ddb280ad26
2 changed files with 10 additions and 5 deletions
|
@ -890,7 +890,11 @@ void unpackGames(void) {
|
|||
isFile = false;
|
||||
if ((strcmp(de->d_name, ".") != 0) && (strcmp(de->d_name, "..") != 0)) {
|
||||
if (stat(de->d_name, &fileStat) == 0) {
|
||||
#ifdef _WIN32
|
||||
if (S_ISREG(fileStat.st_mode)) {
|
||||
#else
|
||||
if (S_ISREG(fileStat.st_mode) || S_ISLNK(fileStat.st_mode)) {
|
||||
#endif
|
||||
isFile = true;
|
||||
}
|
||||
}
|
||||
|
|
1
thirdparty/luasec/src/context.c
vendored
1
thirdparty/luasec/src/context.c
vendored
|
@ -9,6 +9,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#if defined(WIN32)
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue