Skip to content

Commit

Permalink
fuck sockets fuck sockets fuck sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzyhau committed Aug 20, 2023
1 parent 52fd8db commit 839fc91
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Features/Tas/TasProtocol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
#include <cstdint>
#include <deque>

// defining socket here manually because
// for unknown reasons winsock cannot be included here
#ifdef _WIN32
# define SOCKET unsigned int
#else
# define SOCKET int
#endif


namespace TasProtocol {
enum class PlaybackState {
PLAYING,
Expand Down Expand Up @@ -50,7 +59,7 @@ namespace TasProtocol {
};

struct ConnectionData {
unsigned int sock;
SOCKET sock;
std::deque<uint8_t> cmdbuf;
std::string contInfoEntSelector;
};
Expand Down

0 comments on commit 839fc91

Please sign in to comment.