ssaparse: include required system headers for isspace() and sscanf() functions
authorKhem Raj <raj.khem@gmail.com>
Sat, 13 Aug 2022 05:42:28 +0000 (22:42 -0700)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 14 Aug 2022 08:32:05 +0000 (08:32 +0000)
Newer compilers ( clang 15 ) have turned stricter and errors out instead
of warning on implicit function declations

Fixes
gstssaparse.c:297:12: error: call to undeclared library function 'isspace' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    while (isspace(*t))

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2879>

subprojects/gst-plugins-base/gst/subparse/gstssaparse.c

index a9cdcd1..d6fdb9c 100644 (file)
@@ -24,6 +24,8 @@
 #include "config.h"
 #endif
 
+#include <ctype.h>              /* isspace() */
+#include <stdio.h>              /* sscanf() */
 #include <stdlib.h>             /* atoi() */
 #include <string.h>