diff options
author | Ryan Volz <ryan.volz@gmail.com> | 2020-10-07 18:15:29 -0400 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2020-12-18 02:11:11 -0800 |
commit | 00fd051dff4a73081c40f4ccfc3b4ac8c62d74f1 (patch) | |
tree | 31e31287a80a1bde61424b3ade5938e879677050 | |
parent | 0cfaf9aac400c914c441374fdfcdaedb6a29d205 (diff) |
fec: lib: Remove use of FEC_API for function definitions.
This fixes building with MSVC. Since these files first get built into an
object that is *not* a shared library, FEC_API was resolving to
__declspec(dllimport), which should never be used for function
definitions. Warnings still occur about inconsistent dll linkage because
the gr_fec_rs target is built into an object library that doesn't define
"gnuradio_fec_EXPORTS", but the end result works. These warnings have
always existed previously.
-rw-r--r-- | gr-fec/lib/reed-solomon/decode_rs.h | 4 | ||||
-rw-r--r-- | gr-fec/lib/reed-solomon/decode_rs_ccsds.c | 4 | ||||
-rw-r--r-- | gr-fec/lib/reed-solomon/encode_rs.h | 4 | ||||
-rw-r--r-- | gr-fec/lib/reed-solomon/encode_rs_ccsds.c | 4 |
4 files changed, 4 insertions, 12 deletions
diff --git a/gr-fec/lib/reed-solomon/decode_rs.h b/gr-fec/lib/reed-solomon/decode_rs.h index a2feeb0906..1c18f05652 100644 --- a/gr-fec/lib/reed-solomon/decode_rs.h +++ b/gr-fec/lib/reed-solomon/decode_rs.h @@ -3,8 +3,6 @@ * May be used under the terms of the GNU General Public License (GPL) */ -#include <gnuradio/fec/api.h> - #ifdef DEBUG #include <stdio.h> #endif @@ -17,7 +15,7 @@ #define min(a, b) ((a) < (b) ? (a) : (b)) -FEC_API int DECODE_RS( +int DECODE_RS( #ifndef FIXED void* p, #endif diff --git a/gr-fec/lib/reed-solomon/decode_rs_ccsds.c b/gr-fec/lib/reed-solomon/decode_rs_ccsds.c index 9196260e61..be6e2018e3 100644 --- a/gr-fec/lib/reed-solomon/decode_rs_ccsds.c +++ b/gr-fec/lib/reed-solomon/decode_rs_ccsds.c @@ -8,9 +8,7 @@ #include "ccsds.h" #include "fixed.h" -#include <gnuradio/fec/api.h> - -FEC_API int decode_rs_ccsds(unsigned char* data, int* eras_pos, int no_eras) +int decode_rs_ccsds(unsigned char* data, int* eras_pos, int no_eras) { int i, r; unsigned char cdata[NN]; diff --git a/gr-fec/lib/reed-solomon/encode_rs.h b/gr-fec/lib/reed-solomon/encode_rs.h index 75051426db..45e1ab7202 100644 --- a/gr-fec/lib/reed-solomon/encode_rs.h +++ b/gr-fec/lib/reed-solomon/encode_rs.h @@ -3,11 +3,9 @@ * May be used under the terms of the GNU General Public License (GPL) */ -#include <gnuradio/fec/api.h> - #include <string.h> -FEC_API void ENCODE_RS( +void ENCODE_RS( #ifndef FIXED void* p, #endif diff --git a/gr-fec/lib/reed-solomon/encode_rs_ccsds.c b/gr-fec/lib/reed-solomon/encode_rs_ccsds.c index 1ebd3a443e..7080b3f419 100644 --- a/gr-fec/lib/reed-solomon/encode_rs_ccsds.c +++ b/gr-fec/lib/reed-solomon/encode_rs_ccsds.c @@ -8,9 +8,7 @@ #include "ccsds.h" #include "fixed.h" -#include <gnuradio/fec/api.h> - -FEC_API void encode_rs_ccsds(unsigned char* data, unsigned char* parity) +void encode_rs_ccsds(unsigned char* data, unsigned char* parity) { int i; unsigned char cdata[NN - NROOTS]; |