30ae45ec2b
Make the modifications necessary to compile dump1090 for WinXP, Win7 and hopefully Win8. The files can be compiled using M$ Visual Studio/C++ 6.0. Due to various licensing issues, I haven't included the libraries or DLLs. You will need to locate pthreadVC2.lib and rtlsdr.lib to link the file, install the zadig drivers to support the dongle, and locate libusb-1.0.dll, msvcr100.dll, pthreadVC2.dll and rtlsdr.dll. dump1090.exe will not run on any Windows version prior to XP SP2, because msvcr100.dll imports several functions from the Windows kernel that are not available on earlier versions. This means dump1090 won't work on Win2K. The major change to the code relates to file handles. The original code assumes Linux behaviour in that handles are allocated from 0 sequentially upwards. However Windows handles are allocated pseudo randomly, and handle numbers greater than 1024 would break the code. The code has therefore been modified to use a linked list of connection structures, rather than a static array limited to 1024 entries.
48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
/*
|
|
* rtl-sdr, turns your Realtek RTL2832 based DVB dongle into a SDR receiver
|
|
* Copyright (C) 2012 by Hoernchen <la@tfc-server.de>
|
|
*
|
|
* This program 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 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef RTLSDR_EXPORT_H
|
|
#define RTLSDR_EXPORT_H
|
|
|
|
#if defined __GNUC__
|
|
# if __GNUC__ >= 4
|
|
# define __SDR_EXPORT __attribute__((visibility("default")))
|
|
# define __SDR_IMPORT __attribute__((visibility("default")))
|
|
# else
|
|
# define __SDR_EXPORT
|
|
# define __SDR_IMPORT
|
|
# endif
|
|
#elif _MSC_VER
|
|
# define __SDR_EXPORT __declspec(dllexport)
|
|
# define __SDR_IMPORT __declspec(dllimport)
|
|
#else
|
|
# define __SDR_EXPORT
|
|
# define __SDR_IMPORT
|
|
#endif
|
|
|
|
#ifndef rtlsdr_STATIC
|
|
# ifdef rtlsdr_EXPORTS
|
|
# define RTLSDR_API __SDR_EXPORT
|
|
# else
|
|
# define RTLSDR_API __SDR_IMPORT
|
|
# endif
|
|
#else
|
|
#define RTLSDR_API
|
|
#endif
|
|
#endif /* RTLSDR_EXPORT_H */
|