all repos — mgba @ 2415d59d94a8dcbc93baf7fec00aee2eb2d0c5e2

mGBA Game Boy Advance Emulator

Windows C++ fixes
Jeffrey Pfau jeffrey@endrift.com
Sat, 25 Oct 2014 03:06:45 -0700
commit

2415d59d94a8dcbc93baf7fec00aee2eb2d0c5e2

parent

c8d5219212667aebe4797171665b361830e653bd

3 files changed, 6 insertions(+), 8 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -7,8 +7,8 @@ #include <QMenuBar>

#include <QStackedLayout> #include "GameController.h" -#include "GDBWindow.h" #include "GDBController.h" +#include "GDBWindow.h" #include "LoadSaveState.h" #include "LogView.h"
M src/platform/qt/Window.hsrc/platform/qt/Window.h

@@ -8,6 +8,7 @@ extern "C" {

#include "gba.h" } +#include "GDBController.h" #include "Display.h" #include "LoadSaveState.h"

@@ -16,7 +17,6 @@

namespace QGBA { class GameController; -class GDBController; class LogView; class WindowBackground;
M src/util/socket.hsrc/util/socket.h

@@ -48,10 +48,9 @@

struct sockaddr_in bindInfo = { .sin_family = AF_INET, .sin_port = htons(port), - .sin_addr = { - .s_addr = htonl(bindAddress) - } + .sin_addr = { 0 } }; + bindInfo.sin_addr.s_addr = htonl(bindAddress); int err = bind(sock, (const struct sockaddr*) &bindInfo, sizeof(struct sockaddr_in)); if (err) { close(sock);

@@ -69,10 +68,9 @@

struct sockaddr_in bindInfo = { .sin_family = AF_INET, .sin_port = htons(port), - .sin_addr = { - .s_addr = htonl(destinationAddress) - } + .sin_addr = { 0 } }; + bindInfo.sin_addr.s_addr = htonl(destinationAddress); int err = connect(sock, (const struct sockaddr*) &bindInfo, sizeof(struct sockaddr_in)); if (err) { close(sock);