From 6673258639e376114376094236a511d03be5a95e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <rem@videolan.org>
Date: Thu, 1 May 2008 22:17:21 +0300
Subject: [PATCH] Put msg_context_global_key to the internal header.

It was not exported from libvlc anyhow.
---
 include/vlc_common.h | 8 --------
 src/libvlc.h         | 7 +++++++
 src/misc/messages.c  | 1 +
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index a0f7a3d06637..606ba438c173 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -1004,14 +1004,6 @@ VLC_EXPORT( const char *, VLC_Changeset, ( void ) );
 #include "main.h"
 #include "vlc_configuration.h"
 
-/** The global thread var for msg stack context
- *  We store this as a static global variable so we don't need a vlc_object_t
- *  everywhere.
- *  This key is created in vlc_threads_init and is therefore ready to use at
- *  the very beginning of the universe */
-extern vlc_threadvar_t msg_context_global_key;
-
-
 #if defined( WIN32 ) || defined( UNDER_CE )
 #   define DIR_SEP_CHAR '\\'
 #   define DIR_SEP "\\"
diff --git a/src/libvlc.h b/src/libvlc.h
index da25c7d6a7ff..b3dff5e3668b 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -59,6 +59,13 @@ VLC_EXPORT( const char * , system_VLCPath, (void));
 int __vlc_threads_init( vlc_object_t * );
 int __vlc_threads_end( vlc_object_t * );
 
+/** The global thread var for msg stack context
+ *  We store this as a static global variable so we don't need a vlc_object_t
+ *  everywhere.
+ *  This key is created in vlc_threads_init and is therefore ready to use at
+ *  the very beginning of the universe */
+extern vlc_threadvar_t msg_context_global_key;
+
 /*
  * CPU capabilities
  */
diff --git a/src/misc/messages.c b/src/misc/messages.c
index 5f64faf3ebdf..ed17b87c8cf5 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -53,6 +53,7 @@
 #include <assert.h>
 
 #include <vlc_charset.h>
+#include "../libvlc.h"
 
 /*****************************************************************************
  * Local macros
-- 
GitLab