summaryrefslogtreecommitdiff
path: root/src/xine-engine/xine_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xine-engine/xine_private.h')
-rw-r--r--src/xine-engine/xine_private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/xine-engine/xine_private.h b/src/xine-engine/xine_private.h
index a82f6a05f..f1e94cd56 100644
--- a/src/xine-engine/xine_private.h
+++ b/src/xine-engine/xine_private.h
@@ -29,15 +29,25 @@
#ifndef XINE_PRIVATE_H__
#define XINE_PRIVATE_H__
+#ifndef XINE_LIBRARY_COMPILE
+# error xine_private.h is for libxine's private use only!
+#endif
+
#include <config.h>
#include <xine/xine_internal.h>
#if SUPPORT_ATTRIBUTE_VISIBILITY_INTERNAL
# define INTERNAL __attribute__((visibility("internal")))
+#elif SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT
+# define INTERNAL __attribute__((__visibility__("default")))
#else
# define INTERNAL
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @defgroup load_plugins Plugins loading
* @brief Functions related with plugins loading.
@@ -101,4 +111,8 @@ int _x_set_file_close_on_exec(int fd) INTERNAL;
int _x_set_socket_close_on_exec(int s) INTERNAL;
+#ifdef __cplusplus
+}
+#endif
+
#endif