summaryrefslogtreecommitdiffstats
path: root/src/plist.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-10-03 15:39:47 +0200
committerGravatar Nikias Bassen2014-10-03 15:39:47 +0200
commit62813daf2c4aaec675652d9c1131a58dfa634e38 (patch)
tree4427398d97f1295996410fc3dbf86c6de8bf873c /src/plist.h
parenteab599c151617eef9035343fd63591fa4d09bd3e (diff)
downloadlibplist-62813daf2c4aaec675652d9c1131a58dfa634e38.tar.gz
libplist-62813daf2c4aaec675652d9c1131a58dfa634e38.tar.bz2
Avoid exporting non-public symbols
Diffstat (limited to 'src/plist.h')
-rw-r--r--src/plist.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/plist.h b/src/plist.h
index 2a9a3b5..822144d 100644
--- a/src/plist.h
+++ b/src/plist.h
@@ -22,8 +22,11 @@
#ifndef PLIST_H
#define PLIST_H
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "plist/plist.h"
-#include "common.h"
#include <sys/types.h>
#include <sys/stat.h>
@@ -34,6 +37,15 @@
#pragma warning(disable:4244)
#endif
+#ifdef WIN32
+ #define PLIST_API __declspec( dllexport )
+#else
+ #ifdef HAVE_FVISIBILITY
+ #define PLIST_API __attribute__((visibility("default")))
+ #else
+ #define PLIST_API
+ #endif
+#endif
struct plist_data_s
{
@@ -52,10 +64,10 @@ struct plist_data_s
typedef struct plist_data_s *plist_data_t;
-_PLIST_INTERNAL plist_t plist_new_node(plist_data_t data);
-_PLIST_INTERNAL plist_data_t plist_get_data(const plist_t node);
-_PLIST_INTERNAL plist_data_t plist_new_plist_data(void);
-_PLIST_INTERNAL int plist_data_compare(const void *a, const void *b);
+plist_t plist_new_node(plist_data_t data);
+plist_data_t plist_get_data(const plist_t node);
+plist_data_t plist_new_plist_data(void);
+int plist_data_compare(const void *a, const void *b);
#endif