diff --git a/Display.cpp b/Display.cpp index c09111d2..ab0c0bb8 100644 --- a/Display.cpp +++ b/Display.cpp @@ -22,6 +22,7 @@ #include "ModemSerialPort.h" #include "NullDisplay.h" #include "TFTSurenoo.h" +#include "UDPSocket.h" #include "LCDproc.h" #include "Nextion.h" #include "CASTInfo.h" diff --git a/Display.h b/Display.h index af067b93..314c9dbc 100644 --- a/Display.h +++ b/Display.h @@ -21,7 +21,6 @@ #include "Timer.h" #include "UserDBentry.h" -#include "UDPSocket.h" #include "Modem.h" #include diff --git a/LCDproc.h b/LCDproc.h index 5a74bfb5..b702493d 100644 --- a/LCDproc.h +++ b/LCDproc.h @@ -20,7 +20,6 @@ #if !defined(LCDproc_H) #define LCDproc_H -#include "UDPSocket.h" #include "Display.h" #include "Timer.h" diff --git a/MMDVMHost.cpp b/MMDVMHost.cpp index c01cbf51..937967f0 100644 --- a/MMDVMHost.cpp +++ b/MMDVMHost.cpp @@ -75,7 +75,7 @@ static void sigHandler2(int signum) const char* HEADER1 = "This software is for use on amateur radio networks only,"; const char* HEADER2 = "it is to be used for educational purposes only. Its use on"; const char* HEADER3 = "commercial networks is strictly prohibited."; -const char* HEADER4 = "Copyright(C) 2015-2023 by Jonathan Naylor, G4KLX and others"; +const char* HEADER4 = "Copyright(C) 2015-2024 by Jonathan Naylor, G4KLX and others"; int main(int argc, char** argv) { diff --git a/MMDVMHost.vcxproj b/MMDVMHost.vcxproj index 50d7684a..c0fba946 100644 --- a/MMDVMHost.vcxproj +++ b/MMDVMHost.vcxproj @@ -87,13 +87,14 @@ Level3 Disabled - HAVE_LOG_H;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + HAVE_LOG_H;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) ..\..\libsamplerate-0.1.9\src Console true - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;%(AdditionalDependencies) + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;libsamplerate-0.lib;%(AdditionalDependencies) + ..\..\libsamplerate\Debug;%(AdditionalLibraryDirectories) @@ -102,13 +103,14 @@ Level3 Disabled - HAVE_LOG_H;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + HAVE_LOG_H;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) ..\..\libsamplerate-0.1.9\src Console true - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;%(AdditionalDependencies) + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;libsamplerate-0.lib;%(AdditionalDependencies) + ..\..\libsamplerate\x64\Debug;%(AdditionalLibraryDirectories) "$(ProjectDir)prebuild.cmd" $(ProjectDir) @@ -125,7 +127,7 @@ MaxSpeed true true - HAVE_LOG_H;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + HAVE_LOG_H;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) ..\..\libsamplerate-0.1.9\src @@ -133,7 +135,8 @@ true true true - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;%(AdditionalDependencies) + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;libsamplerate-0.lib;%(AdditionalDependencies) + ..\..\libsamplerate\Release;%(AdditionalLibraryDirectories) @@ -144,7 +147,7 @@ MaxSpeed true true - HAVE_LOG_H;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + HAVE_LOG_H;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) ..\..\libsamplerate-0.1.9\src @@ -152,7 +155,8 @@ true true true - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;%(AdditionalDependencies) + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;libsamplerate-0.lib;%(AdditionalDependencies) + ..\..\libsamplerate\x64\Release;%(AdditionalLibraryDirectories) diff --git a/NetworkInfo.cpp b/NetworkInfo.cpp index 10a9d620..b85e8a62 100644 --- a/NetworkInfo.cpp +++ b/NetworkInfo.cpp @@ -38,8 +38,8 @@ #include #endif #elif defined(_WIN32) || defined(_WIN64) -// #include -// #include +#include +#include #include #pragma comment(lib, "iphlpapi.lib") #ifndef NO_ERROR diff --git a/NetworkInfo.h b/NetworkInfo.h index a58cef81..2febcde9 100644 --- a/NetworkInfo.h +++ b/NetworkInfo.h @@ -19,8 +19,6 @@ #if !defined(NETWORKINFO_H) #define NETWORKINFO_H -#include "UDPSocket.h" - class CNetworkInfo { public: CNetworkInfo(); diff --git a/UDPSocket.h b/UDPSocket.h index abc94360..07bf2745 100644 --- a/UDPSocket.h +++ b/UDPSocket.h @@ -16,7 +16,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#ifndef UDPSocket_H +#if !defined(UDPSocket_H) #define UDPSocket_H #include