kopia lustrzana https://github.com/Hamlib/Hamlib
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-79ac388436b8Hamlib-1.2.2
rodzic
93db9eb3c8
commit
91ca25868e
|
@ -51,9 +51,14 @@ AC_CHECK_TYPES([struct timezone, ssize_t],[],[],[
|
||||||
dnl Checks for replacements
|
dnl Checks for replacements
|
||||||
AC_REPLACE_FUNCS([getopt getopt_long usleep gettimeofday])
|
AC_REPLACE_FUNCS([getopt getopt_long usleep gettimeofday])
|
||||||
|
|
||||||
AC_CHECK_FUNC(Sleep,
|
AC_MSG_CHECKING(for Sleep)
|
||||||
[ AC_DEFINE(HAVE_SSLEEP,1,[Define to 1 if you have win32 Sleep]) ],
|
AC_TRY_LINK([ #include <windows.h>
|
||||||
[], [])
|
#include <winbase.h>
|
||||||
|
], [ Sleep(0); ],
|
||||||
|
[AC_DEFINE(HAVE_SSLEEP,1,[Define to 1 if you have win32 Sleep])
|
||||||
|
AC_MSG_RESULT(yes)],
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
)
|
||||||
|
|
||||||
AH_BOTTOM(
|
AH_BOTTOM(
|
||||||
[
|
[
|
||||||
|
|
Ładowanie…
Reference in New Issue