mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 18:37:18 +00:00
Remove hl_sleep.h as no longer needed
This commit is contained in:
parent
57952c5927
commit
2fca5f49b8
17
adat/adat.c
17
adat/adat.c
@ -48,23 +48,6 @@
|
||||
#include "register.h"
|
||||
#include "num_stdio.h"
|
||||
|
||||
/* HAVE_SSLEEP is defined when Windows Sleep is found
|
||||
* HAVE_SLEEP is defined when POSIX sleep is found
|
||||
* _WIN32 is defined when compiling with MinGW
|
||||
*
|
||||
* When cross-compiling from POSIX to Windows using MinGW, HAVE_SLEEP
|
||||
* will often be defined by configure although it is not supported by
|
||||
* MinGW. So substitute the sleep definition below in such a case and
|
||||
* when compiling on Windows using MinGW where HAVE_SLEEP will be
|
||||
* undefined.
|
||||
*
|
||||
* FIXME: Needs better handling for all versions of MinGW.
|
||||
*
|
||||
*/
|
||||
#if (defined(HAVE_SSLEEP) || defined(_WIN32)) && (!defined(HAVE_SLEEP))
|
||||
# include "hl_sleep.h"
|
||||
#endif
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// ADAT INCLUDES
|
||||
// ---------------------------------------------------------------------------
|
||||
|
@ -1,4 +1,4 @@
|
||||
noinst_HEADERS = config.h bandplan.h num_stdio.h hl_sleep.h
|
||||
noinst_HEADERS = config.h bandplan.h num_stdio.h
|
||||
|
||||
nobase_include_HEADERS = hamlib/rig.h hamlib/riglist.h hamlib/rig_dll.h \
|
||||
hamlib/rotator.h hamlib/rotlist.h hamlib/rigclass.h \
|
||||
|
@ -1,41 +0,0 @@
|
||||
/*
|
||||
* Hamlib Interface - Replacement sleep() declaration for Windows
|
||||
* Copyright (C) 2013 The Hamlib Group
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
/* Define missing sleep() prototype */
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WINBASE_H
|
||||
#include <windows.h>
|
||||
#include <winbase.h>
|
||||
#endif
|
||||
|
||||
/* TODO: what about SleepEx? */
|
||||
static inline unsigned int sleep(unsigned int nb_sec)
|
||||
{
|
||||
Sleep(nb_sec * 1000);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
@ -36,23 +36,6 @@
|
||||
#include "misc.h"
|
||||
#include "num_stdio.h"
|
||||
|
||||
/* HAVE_SSLEEP is defined when Windows Sleep is found
|
||||
* HAVE_SLEEP is defined when POSIX sleep is found
|
||||
* _WIN32 is defined when compiling with MinGW
|
||||
*
|
||||
* When cross-compiling from POSIX to Windows using MinGW, HAVE_SLEEP
|
||||
* will often be defined by configure although it is not supported by
|
||||
* MinGW. So substitute the sleep definition below in such a case and
|
||||
* when compiling on Windows using MinGW where HAVE_SLEEP will be
|
||||
* undefined.
|
||||
*
|
||||
* FIXME: Needs better handling for all versions of MinGW.
|
||||
*
|
||||
*/
|
||||
#if (defined(HAVE_SSLEEP) || defined(_WIN32)) && (!defined(HAVE_SLEEP))
|
||||
#include "hl_sleep.h"
|
||||
#endif
|
||||
|
||||
struct tt585_priv_data
|
||||
{
|
||||
unsigned char status_data[30];
|
||||
|
@ -39,24 +39,6 @@
|
||||
|
||||
#include "tt550.h"
|
||||
|
||||
/* HAVE_SSLEEP is defined when Windows Sleep is found
|
||||
* HAVE_SLEEP is defined when POSIX sleep is found
|
||||
* _WIN32 is defined when compiling with MinGW
|
||||
*
|
||||
* When cross-compiling from POSIX to Windows using MinGW, HAVE_SLEEP
|
||||
* will often be defined by configure although it is not supported by
|
||||
* MinGW. So substitute the sleep definition below in such a case and
|
||||
* when compiling on Windows using MinGW where HAVE_SLEEP will be
|
||||
* undefined.
|
||||
*
|
||||
* FIXME: Needs better handling for all versions of MinGW.
|
||||
*
|
||||
*/
|
||||
#if (defined(HAVE_SSLEEP) || defined(_WIN32)) && (!defined(HAVE_SLEEP))
|
||||
#include "hl_sleep.h"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Filter table for 550 reciver support
|
||||
*/
|
||||
|
@ -66,24 +66,6 @@ extern int read_history();
|
||||
#include "misc.h"
|
||||
#include "sprintflst.h"
|
||||
|
||||
|
||||
/* HAVE_SSLEEP is defined when Windows Sleep is found
|
||||
* HAVE_SLEEP is defined when POSIX sleep is found
|
||||
* _WIN32 is defined when compiling with MinGW
|
||||
*
|
||||
* When cross-compiling from POSIX to Windows using MinGW, HAVE_SLEEP
|
||||
* will often be defined by configure although it is not supported by
|
||||
* MinGW. So substitute the sleep definition below in such a case and
|
||||
* when compiling on Windows using MinGW where HAVE_SLEEP will be
|
||||
* undefined.
|
||||
*
|
||||
* FIXME: Needs better handling for all versions of MinGW.
|
||||
*
|
||||
*/
|
||||
#if (defined(HAVE_SSLEEP) || defined(_WIN32)) && (!defined(HAVE_SLEEP))
|
||||
# include "hl_sleep.h"
|
||||
#endif
|
||||
|
||||
#include "ampctl_parse.h"
|
||||
|
||||
/* Hash table implementation See: http://uthash.sourceforge.net/ */
|
||||
|
@ -68,23 +68,6 @@ extern int read_history();
|
||||
#include "serial.h"
|
||||
#include "sprintflst.h"
|
||||
|
||||
/* HAVE_SSLEEP is defined when Windows Sleep is found
|
||||
* HAVE_SLEEP is defined when POSIX sleep is found
|
||||
* _WIN32 is defined when compiling with MinGW
|
||||
*
|
||||
* When cross-compiling from POSIX to Windows using MinGW, HAVE_SLEEP
|
||||
* will often be defined by configure although it is not supported by
|
||||
* MinGW. So substitute the sleep definition below in such a case and
|
||||
* when compiling on Windows using MinGW where HAVE_SLEEP will be
|
||||
* undefined.
|
||||
*
|
||||
* FIXME: Needs better handling for all versions of MinGW.
|
||||
*
|
||||
*/
|
||||
#if (defined(HAVE_SSLEEP) || defined(_WIN32)) && (!defined(HAVE_SLEEP))
|
||||
# include "hl_sleep.h"
|
||||
#endif
|
||||
|
||||
#include "rigctl_parse.h"
|
||||
|
||||
/* Hash table implementation See: http://uthash.sourceforge.net/ */
|
||||
|
@ -15,23 +15,6 @@
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
/* HAVE_SSLEEP is defined when Windows Sleep is found
|
||||
* HAVE_SLEEP is defined when POSIX sleep is found
|
||||
* _WIN32 is defined when compiling with MinGW
|
||||
*
|
||||
* When cross-compiling from POSIX to Windows using MinGW, HAVE_SLEEP
|
||||
* will often be defined by configure although it is not supported by
|
||||
* MinGW. So substitute the sleep definition below in such a case and
|
||||
* when compiling on Windows using MinGW where HAVE_SLEEP will be
|
||||
* undefined.
|
||||
*
|
||||
* FIXME: Needs better handling for all versions of MinGW.
|
||||
*
|
||||
*/
|
||||
#if (defined(HAVE_SSLEEP) || defined(_WIN32)) && (!defined(HAVE_SLEEP))
|
||||
# include "hl_sleep.h"
|
||||
#endif
|
||||
|
||||
#define SERIAL_PORT "/dev/ttyS0"
|
||||
|
||||
|
||||
|
@ -13,23 +13,6 @@
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
/* HAVE_SSLEEP is defined when Windows Sleep is found
|
||||
* HAVE_SLEEP is defined when POSIX sleep is found
|
||||
* _WIN32 is defined when compiling with MinGW
|
||||
*
|
||||
* When cross-compiling from POSIX to Windows using MinGW, HAVE_SLEEP
|
||||
* will often be defined by configure although it is not supported by
|
||||
* MinGW. So substitute the sleep definition below in such a case and
|
||||
* when compiling on Windows using MinGW where HAVE_SLEEP will be
|
||||
* undefined.
|
||||
*
|
||||
* FIXME: Needs better handling for all versions of MinGW.
|
||||
*
|
||||
*/
|
||||
#if (defined(HAVE_SSLEEP) || defined(_WIN32)) && (!defined(HAVE_SLEEP))
|
||||
# include "hl_sleep.h"
|
||||
#endif
|
||||
|
||||
#define SERIAL_PORT "/dev/ttyS0"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user