From 83a0d5beb40b641a15be5d0639e3723727b5e3a4 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Sat, 9 Mar 2024 11:04:17 -0500 Subject: [PATCH] Updated files to reflect change in easysock (from CPP to C) --- client.cpp | 2 +- meson.build | 4 ++-- server.cpp | 2 +- sock.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client.cpp b/client.cpp index bf5f665..6ddb1dd 100644 --- a/client.cpp +++ b/client.cpp @@ -2,7 +2,7 @@ #include "includes/client.hpp" #include "includes/exception_consts.hpp" #include "includes/sock.hpp" -#include "includes/easysock.hpp" +#include "includes/easysock.h" /* Destructor - closes any open sockets */ Client::~Client() { diff --git a/meson.build b/meson.build index 5f4c1a0..c1cbcd4 100644 --- a/meson.build +++ b/meson.build @@ -33,7 +33,7 @@ if build_machine.system() == 'windows' endif executable('pong', - 'main.cpp', 'easysock.cpp', 'sock.cpp','paddle.cpp', 'ball.cpp', 'numeric_base.cpp', 'connect_code.cpp', 'server.cpp', 'client.cpp', 'check_input.cpp', - 'serialization.c', 'timer.c', + 'main.cpp', 'sock.cpp','paddle.cpp', 'ball.cpp', 'numeric_base.cpp', 'connect_code.cpp', 'server.cpp', 'client.cpp', 'check_input.cpp', 'raygui_helpers.cpp', + 'serialization.c', 'timer.c', 'easysock.c', dependencies: [raylib, ws2_dep, winmm] ) diff --git a/server.cpp b/server.cpp index c0a4677..34decd1 100644 --- a/server.cpp +++ b/server.cpp @@ -8,8 +8,8 @@ #include "includes/sock.hpp" #include "includes/server.hpp" #include "includes/exception_consts.hpp" -#include "includes/easysock.hpp" #include "includes/connect_code.hpp" +#include "includes/easysock.h" /* Destructor - closes any open sockets */ Server::~Server() { diff --git a/sock.cpp b/sock.cpp index ffcb778..b4842c9 100644 --- a/sock.cpp +++ b/sock.cpp @@ -2,7 +2,7 @@ #include #include "includes/sock.hpp" #include "includes/exception_consts.hpp" -#include "includes/easysock.hpp" +#include "includes/easysock.h" /* Function to create socket. This function doesn't actually create a socket (and isn't meant to be called directly). Instead, the client and server classes