(Win32) Buildfix

This commit is contained in:
twinaphex 2016-03-04 05:01:49 +01:00
parent 6d4212ca06
commit 418c5cbb76
2 changed files with 8 additions and 3 deletions

View File

@ -1008,9 +1008,9 @@ ifeq ($(HAVE_COMPRESSION), 1)
DEFINES += -DHAVE_COMPRESSION
endif
ifeq ($(HAVE_DIRECTX), 1)
DEFINES += -I"$(DXSDK_DIR)/Include"
endif
#ifeq ($(HAVE_DIRECTX), 1)
#$DEFINES += -I"$(DXSDK_DIR)/Include"
#endif
ifeq ($(HAVE_COCOA),1)
DEFINES += -DHAVE_MAIN

View File

@ -15,6 +15,7 @@
#include <retro_miscellaneous.h>
#include "../../frontend/frontend_driver.h"
#include "../../general.h"
#include "../../verbosity.h"
#include "win32_common.h"
@ -393,6 +394,10 @@ bool win32_suppress_screensaver(void *data, bool enable)
{
int major, minor;
char tmp[PATH_MAX_LENGTH];
const frontend_ctx_driver_t *frontend = frontend_get_ptr();
if (!frontend)
return false;
frontend->get_os(tmp, sizeof(tmp), &major, &minor);