[Pkg-voip-commits] [bctoolbox] 41/60: Rename LINPHONE_NO_BREAK macro to BCTBX_NO_BREAK and move it into bctoolbox

Bernhard Schmidt berni at moszumanska.debian.org
Sun Oct 15 22:42:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

berni pushed a commit to branch debian/sid
in repository bctoolbox.

commit e401c0a91f81ff2a22b713151617ba4e7994c855
Author: Erwan Croze <erwan.croze at belledonne-communications.com>
Date:   Wed May 31 15:28:13 2017 +0200

    Rename LINPHONE_NO_BREAK macro to BCTBX_NO_BREAK and move it into bctoolbox
---
 include/CMakeLists.txt        |  3 ++-
 include/bctoolbox/Makefile.am |  2 +-
 include/bctoolbox/defs.h      | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index 70cd215..20e04f3 100644
--- a/include/CMakeLists.txt
+++ b/include/CMakeLists.txt
@@ -22,6 +22,7 @@
 
 set(HEADER_FILES
 	crypto.h
+	defs.h
 	list.h
 	logging.h
 	map.h
@@ -33,7 +34,7 @@ set(HEADER_FILES
 if(ENABLE_TESTS_COMPONENT)
 	list(APPEND HEADER_FILES tester.h)
 endif()
-if(HAVE_EXECINFO) 
+if(HAVE_EXECINFO)
 	list(APPEND HEADER_FILES exception.hh)
 endif()
 
diff --git a/include/bctoolbox/Makefile.am b/include/bctoolbox/Makefile.am
index 4f7c099..dfca87b 100644
--- a/include/bctoolbox/Makefile.am
+++ b/include/bctoolbox/Makefile.am
@@ -1,5 +1,5 @@
 bctoolboxdir=$(includedir)/bctoolbox
 
-bctoolbox_HEADERS=tester.h crypto.h map.h list.h port.h logging.h vfs.h vconnect.h exception.hh parser.h
+bctoolbox_HEADERS=tester.h crypto.h defs.h map.h list.h port.h logging.h vfs.h vconnect.h exception.hh parser.h
 
 EXTRA_DIST=$(bctoolbox_HEADERS)
diff --git a/include/bctoolbox/defs.h b/include/bctoolbox/defs.h
new file mode 100644
index 0000000..3ac9d29
--- /dev/null
+++ b/include/bctoolbox/defs.h
@@ -0,0 +1,34 @@
+/*
+defs.h
+Copyright (C) 2010-2017 Belledonne Communications SARL
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+*/
+
+#ifndef BCTBX_DEFS_H_
+#define BCTBX_DEFS_H_
+
+/* Macro telling GCC that a 'break' statement has been deliberately omitted
+ * in switch block */
+#ifndef BCTBX_NO_BREAK
+#if defined(__GNUC__) && __GNUC__ >= 7
+#define BCTBX_NO_BREAK __attribute__((fallthrough))
+#else
+#define BCTBX_NO_BREAK
+#endif // __GNUC__
+#endif // BCTBX_NO_BREAK
+
+
+#endif /* BCTBX_DEFS_H_ */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/bctoolbox.git



More information about the Pkg-voip-commits mailing list