MSVC compatibility fixes

This commit is contained in:
Twinaphex
2014-04-15 01:59:54 -07:00
parent a5a1a476b1
commit 514448258e
20 changed files with 55 additions and 37 deletions

View File

@@ -24,7 +24,11 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef _WIN32
#include <direct.h>
#else
#include <unistd.h>
#endif
#include <zlib.h>
#include "fceu-types.h"
@@ -76,6 +80,9 @@ int FCEUI_NetplayStart(int nlocal, int divisor) {
}
int FCEUNET_SendCommand(uint8 cmd, uint32 len) {
#ifdef __LIBRETRO__
return 0;
#else
uint8 buf[numlocal + 1 + 4];
buf[0] = 0xFF;
@@ -88,6 +95,7 @@ int FCEUNET_SendCommand(uint8 cmd, uint32 len) {
}
#endif
return(1);
#endif
}
void FCEUI_NetplayText(uint8 *text) {