plugins/a52/a52.c needs stdint.h?
Steven M. Schultz
sms at 2BSD.COM
Tue Feb 12 23:32:56 CET 2002
Greetings -
The new plugin 'a52' needs to include <stdint.h> before
<a52dec/a52.h> or compilation errors of the form:
gmake[1]: Entering directory `/usr/local/src/vlc-cvs/plugins/a52'
gcc -finline-limit-30000 -Wall -Winline -pipe -DSYS_BSDI -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -DLOCALEDIR=\"/usr/local/share/locale\" -DDATA_PATH=\"/usr/local/share/videolan\" -DPLUGIN_PATH=\"/usr/local/lib/videolan/vlc\" -Iinclude -Iextras -D_REENTRANT -D_GNU_SOURCE -pthread -O3 -ffast-math -funroll-loops -fomit-frame-pointer -mcpu=pentiumpro -I../../include -I../../extras -DMODULE_NAME=a52 -DMODULE_NAME_IS_a52 -DBUILTIN -c a52.c -o a52.o.a52
In file included from a52.c:41:
/usr/local/include/a52dec/a52.h:34: syntax error before `uint16_t'
/usr/local/include/a52dec/a52.h:41: syntax error before `uint8_t'
/usr/local/include/a52dec/a52.h:46: syntax error before `uint8_t'
/usr/local/include/a52dec/a52.h:57: syntax error before `uint16_t'
/usr/local/include/a52dec/a52.h:66: syntax error before `uint16_t'
/usr/local/include/a52dec/a52.h:88: syntax error before `uint16_t'
/usr/local/include/a52dec/a52.h:113: syntax error before `mm_accel'
/usr/local/include/a52dec/a52.h:114: syntax error before `*'
/usr/local/include/a52dec/a52.h:116: syntax error before `uint8_t'
gmake[1]: *** [a52.o.a52] Error 1
gmake[1]: Leaving directory `/usr/local/src/vlc-cvs/plugins/a52'
gmake: *** [plugins/a52.a] Error 2
If I make the following (small) patch the plugin compiles
without error:
--- plugins/a52/a52.c.dist Wed Feb 6 12:44:22 2002
+++ plugins/a52/a52.c Tue Feb 12 14:12:47 2002
@@ -28,6 +28,7 @@
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h> /* strdup() */
+#include <stdint.h> /* uint8,16_t */
#include <videolan/vlc.h>
Cheers,
Steven Schultz
sms at 2bsd.com
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
More information about the vlc
mailing list