mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +00:00
build: unbreak compilation on Linux
gzdoom/src/d_anonstats.cpp:14:10: fatal error: i_mainwindow.h: No such file or directory 14 | #include "i_mainwindow.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [src/CMakeFiles/zdoom.dir/build.make:1441: src/CMakeFiles/zdoom.dir/d_anonstats.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/Makefile2:959: src/CMakeFiles/zdoom.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 gzdoom/src/d_anonstats.cpp:126:17: error: ‘actor’ was not declared in this scope; did you mean ‘AActor’? 126 | actor-> return false; // no host, disable | ^~~~~ | AActor $ find . -name "i_mainw*" ./src/common/platform/win32/i_mainwindow.h ./src/common/platform/win32/i_mainwindow.cpp Fixes: g4.5pre-1327-g6670bc09b Fixes: g4.9pre-359-g082818405
This commit is contained in:
parent
d993914bef
commit
9b2f2da93b
1 changed files with 2 additions and 3 deletions
|
@ -11,9 +11,8 @@ void D_ConfirmSendStats()
|
||||||
|
|
||||||
#else // !NO_SEND_STATS
|
#else // !NO_SEND_STATS
|
||||||
|
|
||||||
#include "i_mainwindow.h"
|
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
#include "i_mainwindow.h"
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
@ -121,7 +120,7 @@ bool I_HTTPRequest(const char* request)
|
||||||
bool I_HTTPRequest(const char* request)
|
bool I_HTTPRequest(const char* request)
|
||||||
{
|
{
|
||||||
if ((*sys_statshost)[0] == 0)
|
if ((*sys_statshost)[0] == 0)
|
||||||
actor-> return false; // no host, disable
|
return false; // no host, disable
|
||||||
|
|
||||||
int sockfd, portno, n;
|
int sockfd, portno, n;
|
||||||
struct sockaddr_in serv_addr;
|
struct sockaddr_in serv_addr;
|
||||||
|
|
Loading…
Reference in a new issue