Wykres commitów

10 Commity (ed5815f1b4d18458d7105fa59cfdb3d9b9d2b4d1)

Autor SHA1 Wiadomość Data
Michael Black b7e8f01701 Fix mingw32 DLL linkage of hl_sleep 2020-01-10 15:58:16 -06:00
Michael Black f2f56558e7
Enclose sleep replacement in HAVE_NANOSLEEP 2020-01-07 17:33:37 -06:00
Nate Bargmann 1fd85febee MinGW build: Fix sleep() substitution
MinGW does not natively support the POSIX sleep() function so we have
had an override that was a part of the GR_PWIN32 macro and included in
the generated config.h file.  When compiling for Windows on POSIX using
MinGW, Autotools will detect sleep() and set HAVE_SLEEP which prevented
the substitution from being included in the source.  Adding a test for
_WIN32 (set by MinGW's gcc) then caused a warning from src/network.c on
POSIX about winsock2.h needing to be included before windows.h.  As
config.h needed to be included first, the solution to break out the
substitution that includes windows.h into its own file.  This patch
provides that solution and allows the code to compile cleanly on POSIX,
using MinGW on both POSIX and Windows, and on Cygwin.
2013-07-29 12:38:22 -05:00
Nate Bargmann a16dd4797a gr_pwin32.m4: Replace inline sleep() function
Building libltdl recursively with MinGW failed with an error of "sleep"
being redefined.  Commenting out the sleep() definition in config.h.in
resulted in libtdl compiling but a linker failure in libyaesu as
"_sleep" was not defined.

A bit of searching reveals that the MS Windows API does not include
"sleep" and MinGW does not include it either, hence the definition in
gr_pwin32.m4 from the GNU Radio project.  Uopn finding a MinGW User
thread from 2007 that discussed this very issue, the following message
hinted that using a CPP #define to wrap Windows Sleep() may work:

http://mingw.5.n7.nabble.com/Help-where-is-the-C-language-sleep-function-tp8921p8925.html

And indeed it seems to.  Compilation is now clean with recursive libltdl
and the rest of Hamlib, but does it work?
2013-04-24 21:58:50 -05:00
Nate Bargmann ea47d89f3f configure.ac: Quell autoconf obsolete warnings
Using the -Wall switch to autoconf/autoreconf revealed a number of
obsolete macros.  At the moment, offending macros have been commented
out using 'dnl'.  They will be removed at some later date.
2012-09-25 22:29:30 -05:00
Stephane Fillod 084aaef2a5 timersub macro needed for timing in iofunc.c for win32 2011-12-12 09:40:43 +01:00
Stéphane Fillod, F8CFE 41de3bef9c mingw portability
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2908 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-05 19:55:13 +00:00
Stéphane Fillod, F8CFE 2f021f1922 fix Solaris build and maybe other missing getopt_long
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1991 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-04 21:27:03 +00:00
Stéphane Fillod, F8CFE 91ca25868e Sleep() needs windows.h/winbase.h for test to succeed under Cygwin w/ -mno-cygwin
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1805 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-16 22:28:33 +00:00
Stéphane Fillod, F8CFE dc603abc33 initial revision
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1599 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-11-16 22:10:34 +00:00