Allow build on non-Linux systems

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1720 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.1
Stéphane Fillod, F8CFE 2004-04-16 20:06:24 +00:00
rodzic 68b3fef8dd
commit 35511d272b
8 zmienionych plików z 42 dodań i 43 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib WiNRADiO backend - main header
* Copyright (c) 2000-2003 by Stephane Fillod
*
* $Id: winradio.h,v 1.8 2003-04-16 22:30:43 fillods Exp $
* $Id: winradio.h,v 1.9 2004-04-16 20:06:24 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -23,6 +23,17 @@
#ifndef _WINRADIO_H
#define _WINRADIO_H 1
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/*
* So far, only Linux has Linradio support through ioctl,
* until someone port it to some other OS...
*/
#ifdef HAVE_IOCTL
#define WINRADIO_IOCTL
#endif
#include <hamlib/rig.h>
int wr_rig_init(RIG *rig);
@ -45,5 +56,6 @@ extern const struct rig_caps wr3100_caps;
extern const struct rig_caps wr3150_caps;
extern const struct rig_caps wr3500_caps;
extern const struct rig_caps wr3700_caps;
extern const struct rig_caps g303_caps;
#endif /* _WINRADIO_H */

Wyświetl plik

@ -1,8 +1,8 @@
/*
* Hamlib WiNRADiO backend - WR1000 description
* Copyright (c) 2001-2003 by Stephane Fillod
* Copyright (c) 2001-2004 by Stephane Fillod
*
* $Id: wr1000.c,v 1.4 2003-10-01 19:32:03 fillods Exp $
* $Id: wr1000.c,v 1.5 2004-04-16 20:06:24 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -20,16 +20,14 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <hamlib/rig.h>
#include "winradio.h"
#ifdef WINRADIO_IOCTL
/*
* Winradio rigs capabilities.
*/
@ -110,3 +108,4 @@ const struct rig_caps wr1000_caps = {
.get_info = wr_get_info,
};
#endif /* WINRADIO_IOCTL */

Wyświetl plik

@ -1,8 +1,8 @@
/*
* Hamlib WiNRADiO backend - WR1500 description
* Copyright (c) 2001-2003 by Stephane Fillod
* Copyright (c) 2001-2004 by Stephane Fillod
*
* $Id: wr1500.c,v 1.7 2003-10-01 19:32:03 fillods Exp $
* $Id: wr1500.c,v 1.8 2004-04-16 20:06:24 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -20,15 +20,12 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <hamlib/rig.h>
#include "winradio.h"
#ifdef WINRADIO_IOCTL
/*
* Winradio rigs capabilities.
@ -111,3 +108,4 @@ const struct rig_caps wr1500_caps = {
.get_info = wr_get_info,
};
#endif /* WINRADIO_IOCTL */

Wyświetl plik

@ -1,8 +1,8 @@
/*
* Hamlib WiNRADiO backend - WR1550 description
* Copyright (c) 2001-2003 by Stephane Fillod
* Copyright (c) 2001-2004 by Stephane Fillod
*
* $Id: wr1550.c,v 1.4 2003-10-01 19:32:04 fillods Exp $
* $Id: wr1550.c,v 1.5 2004-04-16 20:06:24 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -20,16 +20,13 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <hamlib/rig.h>
#include "winradio.h"
#ifdef WINRADIO_IOCTL
/*
* Winradio rigs capabilities.
*/
@ -111,3 +108,4 @@ const struct rig_caps wr1550_caps = {
.get_info = wr_get_info,
};
#endif /* WINRADIO_IOCTL */

Wyświetl plik

@ -1,8 +1,8 @@
/*
* Hamlib WiNRADiO backend - WR3100 description
* Copyright (c) 2001-2003 by Stephane Fillod
* Copyright (c) 2001-2004 by Stephane Fillod
*
* $Id: wr3100.c,v 1.4 2003-10-01 19:32:04 fillods Exp $
* $Id: wr3100.c,v 1.5 2004-04-16 20:06:24 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -20,16 +20,13 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <hamlib/rig.h>
#include "winradio.h"
#ifdef WINRADIO_IOCTL
/*
* Winradio rigs capabilities.
*/
@ -111,3 +108,4 @@ const struct rig_caps wr3100_caps = {
.get_info = wr_get_info,
};
#endif /* WINRADIO_IOCTL */

Wyświetl plik

@ -1,8 +1,8 @@
/*
* Hamlib WiNRADiO backend - WR3150 description
* Copyright (c) 2001-2003 by Stephane Fillod
* Copyright (c) 2001-2004 by Stephane Fillod
*
* $Id: wr3150.c,v 1.4 2003-10-01 19:32:04 fillods Exp $
* $Id: wr3150.c,v 1.5 2004-04-16 20:06:24 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -20,16 +20,13 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <hamlib/rig.h>
#include "winradio.h"
#ifdef WINRADIO_IOCTL
/*
* Winradio rigs capabilities.
*/
@ -111,3 +108,4 @@ const struct rig_caps wr3150_caps = {
.get_info = wr_get_info,
};
#endif /* WINRADIO_IOCTL */

Wyświetl plik

@ -1,8 +1,8 @@
/*
* Hamlib WiNRADiO backend - WR3500 description
* Copyright (c) 2001-2003 by Stephane Fillod
* Copyright (c) 2001-2004 by Stephane Fillod
*
* $Id: wr3500.c,v 1.4 2003-10-01 19:32:04 fillods Exp $
* $Id: wr3500.c,v 1.5 2004-04-16 20:06:24 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -20,16 +20,13 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <hamlib/rig.h>
#include "winradio.h"
#ifdef WINRADIO_IOCTL
/*
* Winradio rigs capabilities.
*/
@ -113,3 +110,4 @@ const struct rig_caps wr3500_caps = {
.get_info = wr_get_info,
};
#endif /* WINRADIO_IOCTL */

Wyświetl plik

@ -1,8 +1,8 @@
/*
* Hamlib WiNRADiO backend - WR3700 description
* Copyright (c) 2001-2003 by Stephane Fillod
* Copyright (c) 2001-2004 by Stephane Fillod
*
* $Id: wr3700.c,v 1.4 2003-10-01 19:32:04 fillods Exp $
* $Id: wr3700.c,v 1.5 2004-04-16 20:06:24 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -20,16 +20,13 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <hamlib/rig.h>
#include "winradio.h"
#ifdef WINRADIO_IOCTL
/*
* Winradio rigs capabilities.
*/
@ -113,3 +110,4 @@ const struct rig_caps wr3700_caps = {
.get_info = wr_get_info,
};
#endif /* WINRADIO_IOCTL */