Add missing #include directives 99/296199/1
authorArtur Świgoń <a.swigon@samsung.com>
Fri, 21 Jul 2023 11:56:37 +0000 (13:56 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Fri, 21 Jul 2023 11:58:36 +0000 (11:58 +0000)
This fixes the following warnings due to undeclared functions:

src/screen_reader_spi.c:183:6: warning: implicit declaration of function 'isupper' [-Wimplicit-function-declaration]

src/screen_reader_spi.c:185:24: warning: implicit declaration of function 'symbol_lookup' [-Wimplicit-function-declaration]

src/screen_reader_spi.c:185:22: warning: assignment to 'const gchar *' {aka 'const char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]

src/screen_reader_spi.c:236:23: warning: assignment to 'const gchar *' {aka 'const char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]

Change-Id: Ib403fd0ae7cc27861e651777e6ef639e56d1bcbb

src/screen_reader_spi.c

index e6bf8767d815e657ab2ed181e4c9ee64c4bb938c..437c2af690675532ca17a2bb512f29a2e91a30cb 100644 (file)
@@ -16,6 +16,7 @@
 
 #define _GNU_SOURCE
 
+#include <ctype.h>
 #include <stdio.h>
 
 #include <logger.h>
@@ -23,6 +24,7 @@
 #include <reading_composer.h>
 #include <screen_reader_spi.h>
 #include <screen_reader_tts.h>
+#include <symbols.h>
 #include <utils.h>
 
 #ifdef RUN_IPC_TEST_SUIT