kopia lustrzana https://github.com/Hamlib/Hamlib
portability fix
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@578 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.2
rodzic
ee53ec29a3
commit
448e107813
|
@ -2,7 +2,7 @@
|
||||||
register.c - Copyright (C) 2000 Stephane Fillod and Frank Singleton
|
register.c - Copyright (C) 2000 Stephane Fillod and Frank Singleton
|
||||||
Provides registering for dynamically loadable backends.
|
Provides registering for dynamically loadable backends.
|
||||||
|
|
||||||
$Id: register.c,v 1.7 2001-06-15 07:08:37 f4cfe Exp $
|
$Id: register.c,v 1.8 2001-07-06 08:17:48 f4cfe Exp $
|
||||||
|
|
||||||
Hamlib is free software; you can redistribute it and/or modify it
|
Hamlib is free software; you can redistribute it and/or modify it
|
||||||
under the terms of the GNU General Public License as published by
|
under the terms of the GNU General Public License as published by
|
||||||
|
@ -259,8 +259,16 @@ int rig_load_all_backends()
|
||||||
*/
|
*/
|
||||||
int rig_load_backend(const char *be_name)
|
int rig_load_backend(const char *be_name)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* determine PREFIX and POSTFIX values from configure script
|
||||||
|
*/
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
# define PREFIX "cyghamlib-"
|
||||||
|
# define POSTFIX ".dll"
|
||||||
|
#else
|
||||||
# define PREFIX "libhamlib-"
|
# define PREFIX "libhamlib-"
|
||||||
# define POSTFIX ".so" /* ".so.%u" */
|
# define POSTFIX ".so"
|
||||||
|
#endif
|
||||||
lt_dlhandle be_handle;
|
lt_dlhandle be_handle;
|
||||||
int (*be_init)(rig_ptr_t);
|
int (*be_init)(rig_ptr_t);
|
||||||
int status;
|
int status;
|
||||||
|
|
Ładowanie…
Reference in New Issue