Change in osmo-pcu[master]: bts.h: always include C-headers

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Mon Mar 25 16:28:06 UTC 2019


Max has uploaded this change for review. ( https://gerrit.osmocom.org/13403


Change subject: bts.h: always include C-headers
......................................................................

bts.h: always include C-headers

Previously C-headers were only included if bts.h was used by C++ code
which might lead to compilation errors if it's used from C. Fix this by
including C-headers regardless of the compilation mode.

Change-Id: I85b7dc8e8786671a054af2f1e7d836b863a25e60
---
M src/bts.h
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/03/13403/1

diff --git a/src/bts.h b/src/bts.h
index ee5a692..e5bf094 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -23,12 +23,14 @@
 
 #ifdef __cplusplus
 extern "C" {
+#endif
 #include <osmocom/core/linuxlist.h>
 #include <osmocom/core/rate_ctr.h>
 #include <osmocom/core/stat_item.h>
 #include <osmocom/gsm/l1sap.h>
 #include <osmocom/gsm/protocol/gsm_04_08.h>
 	#include <mslot_class.h>
+#ifdef __cplusplus
 }
 
 #include <gsm_rlcmac.h>

-- 
To view, visit https://gerrit.osmocom.org/13403
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I85b7dc8e8786671a054af2f1e7d836b863a25e60
Gerrit-Change-Number: 13403
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190325/3229fec1/attachment.htm>


More information about the gerrit-log mailing list