mirror of https://gerrit.osmocom.org/libosmocore
gsm: Fix compilation error under some compilers
Some compilers don't like declaration of enums in header files like we
do sometimes for structs:
enum gsm_band;
void foobar(enum gsm_band band);
triggers:
error: use of enum 'gsm_band' without previous declaration
Fixes: b99f4ca2d8
Related: OS#4244
Change-Id: I6c2102c763f565bbe3c8dd7e5b4e04c4a45fff67
This commit is contained in:
parent
b99f4ca2d8
commit
2272a03a37
|
@ -30,7 +30,6 @@
|
|||
|
||||
#include <osmocom/core/defs.h>
|
||||
#include <osmocom/core/utils.h>
|
||||
#include <osmocom/gsm/protocol/gsm_04_08.h>
|
||||
|
||||
#define ADD_MODULO(sum, delta, modulo) do { \
|
||||
if ((sum += delta) >= modulo) \
|
||||
|
|
|
@ -9,8 +9,9 @@
|
|||
#include <osmocom/core/utils.h>
|
||||
#include <osmocom/core/endian.h>
|
||||
|
||||
#include <osmocom/gsm/gsm_utils.h>
|
||||
|
||||
struct gsm_lchan;
|
||||
enum gsm_band;
|
||||
|
||||
/* Chapter 10.5.1.5 */
|
||||
struct gsm48_classmark1 {
|
||||
|
|
Loading…
Reference in New Issue