From 821f871296629ffab451faea5134abf6f2d1166f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
Date: Thu, 23 Jan 2020 01:17:15 +0100
Subject: [PATCH] Mark global variables as extern
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
GCC now defaults to -fno-common. As a result, global variable accesses
are more efficient on various targets. In C, global variables with
multiple tentative definitions now result in linker errors.
Fix #27
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
---
src/media_drv_common.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/media_drv_common.h b/src/media_drv_common.h
index cc88a67..0c35ac7 100644
--- a/src/media_drv_common.h
+++ b/src/media_drv_common.h
@@ -39,6 +39,6 @@
#define BRC_INIT_IGNORE_PICTURE_HEADER_SIZE 0x2000
#define BRC_INIT_DISABLE_MBBRC 0x8000
-UINT SEARCH_PATH_TABLE[2][8][16];
-UINT ME_CURBE_INIT_DATA[30];
+extern UINT SEARCH_PATH_TABLE[2][8][16];
+extern UINT ME_CURBE_INIT_DATA[30];
#endif
--
2.24.1