From f269f0afea3fc677962cc62354802e6786de3f00 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 24 Feb 2018 17:46:12 +0100 Subject: Remove porting.c --- Makefile.am | 2 -- src/ConfigParser.cpp | 1 - src/DabMod.cpp | 1 - src/Flowgraph.h | 1 - src/FormatConverter.h | 1 - src/InputFileReader.cpp | 1 - src/InputReader.h | 1 - src/InputZeroMQReader.cpp | 1 - src/NullSymbol.h | 1 - src/Resampler.h | 1 - src/porting.c | 26 -------------------------- src/porting.h | 34 ---------------------------------- 12 files changed, 71 deletions(-) delete mode 100644 src/porting.c delete mode 100644 src/porting.h diff --git a/Makefile.am b/Makefile.am index 8393698..9f53e32 100644 --- a/Makefile.am +++ b/Makefile.am @@ -45,8 +45,6 @@ odr_dabmod_LDADD = $(FFT_LDADD) $(BOOST_LDFLAGS) $(BOOST_THREAD_LIB) $(BOOST_ odr_dabmod_SOURCES = src/DabMod.cpp \ src/PcDebug.h \ src/Socket.h \ - src/porting.c \ - src/porting.h \ src/DabModulator.cpp \ src/DabModulator.h \ src/Buffer.cpp \ diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 33e6219..b593e61 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -34,7 +34,6 @@ #include #include "ConfigParser.h" -#include "porting.h" #include "Utils.h" #include "Log.h" #include "DabModulator.h" diff --git a/src/DabMod.cpp b/src/DabMod.cpp index fec128d..90751f6 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -29,7 +29,6 @@ # include "config.h" #endif -#include "porting.h" #include "Utils.h" #include "Log.h" #include "DabModulator.h" diff --git a/src/Flowgraph.h b/src/Flowgraph.h index b074ee6..08ead14 100644 --- a/src/Flowgraph.h +++ b/src/Flowgraph.h @@ -30,7 +30,6 @@ # include #endif -#include "porting.h" #include "ModPlugin.h" #include diff --git a/src/FormatConverter.h b/src/FormatConverter.h index ce848b6..4370314 100644 --- a/src/FormatConverter.h +++ b/src/FormatConverter.h @@ -32,7 +32,6 @@ # include #endif -#include "porting.h" #include "ModPlugin.h" #include #include diff --git a/src/InputFileReader.cpp b/src/InputFileReader.cpp index 5e93477..5d4d113 100644 --- a/src/InputFileReader.cpp +++ b/src/InputFileReader.cpp @@ -39,7 +39,6 @@ #include #include #include -#include "porting.h" #include "InputReader.h" #include "PcDebug.h" diff --git a/src/InputReader.h b/src/InputReader.h index 07326cf..5b9e80a 100644 --- a/src/InputReader.h +++ b/src/InputReader.h @@ -39,7 +39,6 @@ # include "zmq.hpp" # include "ThreadsafeQueue.h" #endif -#include "porting.h" #include "Log.h" #include #define INVALID_SOCKET -1 diff --git a/src/InputZeroMQReader.cpp b/src/InputZeroMQReader.cpp index f6a816a..1bb325f 100644 --- a/src/InputZeroMQReader.cpp +++ b/src/InputZeroMQReader.cpp @@ -37,7 +37,6 @@ #include #include "zmq.hpp" #include -#include "porting.h" #include "InputReader.h" #include "PcDebug.h" #include "Utils.h" diff --git a/src/NullSymbol.h b/src/NullSymbol.h index 8840449..814e434 100644 --- a/src/NullSymbol.h +++ b/src/NullSymbol.h @@ -30,7 +30,6 @@ # include "config.h" #endif -#include "porting.h" #include "ModPlugin.h" #include diff --git a/src/Resampler.h b/src/Resampler.h index ed94a8c..2886f57 100644 --- a/src/Resampler.h +++ b/src/Resampler.h @@ -30,7 +30,6 @@ # include #endif -#include "porting.h" #include "ModPlugin.h" #include #include diff --git a/src/porting.c b/src/porting.c deleted file mode 100644 index f7421b0..0000000 --- a/src/porting.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - Copyright (C) 2007, 2008, 2009, 2010 Her Majesty the Queen in - Right of Canada (Communications Research Center Canada) - */ -/* - This file is part of ODR-DabMod. - - ODR-DabMod is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the - License, or (at your option) any later version. - - ODR-DabMod is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with ODR-DabMod. If not, see . - */ - -#include "porting.h" - -#ifdef _WIN32 -unsigned int _CRT_fmode = _O_BINARY; -#endif diff --git a/src/porting.h b/src/porting.h deleted file mode 100644 index 1799ba7..0000000 --- a/src/porting.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - Copyright (C) 2007, 2008, 2009, 2010 Her Majesty the Queen in - Right of Canada (Communications Research Center Canada) - */ -/* - This file is part of ODR-DabMod. - - ODR-DabMod is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the - License, or (at your option) any later version. - - ODR-DabMod is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with ODR-DabMod. If not, see . - */ - -#pragma once - -#ifdef HAVE_CONFIG_H -# include -#endif - -#ifdef _WIN32 -#include -// For setting default opening mode with fopen as binary, for all files -// including stdin and stdout -extern unsigned int _CRT_fmode; -#endif - -- cgit v1.2.3