mozilla/webvtt — pull request #227 by caitp (2013-03-03 19:28:23+00:00)
Title: build fails on freebsd

FreeBSD does not allow using `````` unless -traditional is specified.

```log
gmake[4]: Entering directory `/a/webvtt/src/libwebvtt'
CC libwebvtt_la-alloc.lo
In file included from alloc.c:32:
/usr/include/malloc.h:3:2: error: " has been replaced by "
#error " has been replaced by "
^
alloc.c:53:10: warning: implicitly declaring library function 'malloc' with type
'void *(unsigned long)'
return malloc( nb );
^
alloc.c:53:10: note: please include the header or explicitly provide a
declaration for 'malloc'
alloc.c:59:3: warning: implicit declaration of function 'free' is invalid in C99
[-Wimplicit-function-declaration]
free( ptr );
^
2 warnings and 1 error generated.
```

```diff
diff --git a/src/libwebvtt/alloc.c b/src/libwebvtt/alloc.c
index 4e80241..41e1879 100644
--- a/src/libwebvtt/alloc.c
+++ b/src/libwebvtt/alloc.c
@@ -26,11 +26,7 @@
*/

#include
-#if ( defined(__APPLE__) && defined(__MACH__) )
#include
-#else
-#include
-#endif
#include

static void *default_alloc( void *unused, webvtt_uint nb );
```

libc++ has `````` while libstdc++ has ``````. And FreeBSD is moving
away from libstdc++-4.2 (GPLv2) as it doesn't support c++11 features.

```log
gmake[3]: Entering directory `/a/webvtt/test/gtest'
CXX libgtest_la-gtest-all.lo
In file included from gtest-all.cc:39:
./gtest/gtest.h:1621:13: fatal error: 'tr1/tuple' file not found
# include // NOLINT
^
1 error generated.
```

To fix just sync with googletest or merge at least [r621](https://code.google.com/p/googletest/source/detail?r=621).