summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosep Torra <jtorra@oblong.com>2019-03-22 22:25:20 +0100
committerJosep Torra <jtorra@oblong.com>2019-03-25 18:28:55 +0100
commite73280782ce1e0ca825272715a908cff55f9fa0a (patch)
treed59a6d3d6446596a2637b3c53f64a158481e8020
parent60983fcea98b8e3ece1cadf4dd4783c9517ed879 (diff)
downloadgstreamer-plugins-bad-e73280782ce1e0ca825272715a908cff55f9fa0a.tar.gz
closedcaption: fix build error in OSX
Fixes the following error by commenting an unused block. ./misc.h:503:11: error: 'strlcpy' macro redefined [-Werror,-Wmacro-redefined]
-rw-r--r--ext/closedcaption/misc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/closedcaption/misc.h b/ext/closedcaption/misc.h
index 600310561..687b454c0 100644
--- a/ext/closedcaption/misc.h
+++ b/ext/closedcaption/misc.h
@@ -15,8 +15,8 @@
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*/
@@ -498,6 +498,7 @@ _vbi_time_max (void)
# define __va_copy(ap1, ap2) do { ap1 = ap2; } while (0)
#endif
+#if 0
/* Use this instead of strncpy(). strlcpy() is a BSD extension. */
#ifndef HAVE_STRLCPY
# define strlcpy _vbi_strlcpy
@@ -510,6 +511,7 @@ _vbi_strlcpy (char * dst,
const char * src,
size_t size)
_vbi_nonnull ((1, 2));
+#endif
/* /\* strndup() is a BSD/GNU extension. *\/ */
/* #ifndef HAVE_STRNDUP */