summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-01-29 10:45:41 +0100
committerGravatar Nikias Bassen2024-01-29 10:45:41 +0100
commit3daee6097cfa14c597e5104b02acfe83749001d9 (patch)
treef810f63085b5f7270df1ca0fcab68d7479729957 /src
parentb3cf5bec39de69bf06c7813689f03cbe58f45ca9 (diff)
downloadlibplist-3daee6097cfa14c597e5104b02acfe83749001d9.tar.gz
libplist-3daee6097cfa14c597e5104b02acfe83749001d9.tar.bz2
Fix PLIST_API definitions
Diffstat (limited to 'src')
-rw-r--r--src/Array.cpp6
-rw-r--r--src/Boolean.cpp1
-rw-r--r--src/Dictionary.cpp1
-rw-r--r--src/Integer.cpp1
-rw-r--r--src/Key.cpp1
-rw-r--r--src/Makefile.am1
-rw-r--r--src/Node.cpp1
-rw-r--r--src/String.cpp1
-rw-r--r--src/Structure.cpp1
-rw-r--r--src/Uid.cpp1
-rw-r--r--src/bplist.c2
-rw-r--r--src/plist.h16
12 files changed, 27 insertions, 6 deletions
diff --git a/src/Array.cpp b/src/Array.cpp
index d86d021..bc448d3 100644
--- a/src/Array.cpp
+++ b/src/Array.cpp
@@ -18,11 +18,11 @@
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */ 19 */
20 20
21#include <plist/Array.h> 21#include <cstdlib>
22
23#include <algorithm> 22#include <algorithm>
24#include <climits> 23#include <climits>
25#include <cstdlib> 24#include "plist.h"
25#include <plist/Array.h>
26 26
27namespace PList 27namespace PList
28{ 28{
diff --git a/src/Boolean.cpp b/src/Boolean.cpp
index 2c871c8..9ec1a63 100644
--- a/src/Boolean.cpp
+++ b/src/Boolean.cpp
@@ -19,6 +19,7 @@
19 */ 19 */
20 20
21#include <cstdlib> 21#include <cstdlib>
22#include "plist.h"
22#include <plist/Boolean.h> 23#include <plist/Boolean.h>
23 24
24namespace PList 25namespace PList
diff --git a/src/Dictionary.cpp b/src/Dictionary.cpp
index 4e7e19c..30c20b6 100644
--- a/src/Dictionary.cpp
+++ b/src/Dictionary.cpp
@@ -19,6 +19,7 @@
19 */ 19 */
20 20
21#include <cstdlib> 21#include <cstdlib>
22#include "plist.h"
22#include <plist/Dictionary.h> 23#include <plist/Dictionary.h>
23 24
24namespace PList 25namespace PList
diff --git a/src/Integer.cpp b/src/Integer.cpp
index 7fa0f93..30a5405 100644
--- a/src/Integer.cpp
+++ b/src/Integer.cpp
@@ -19,6 +19,7 @@
19 */ 19 */
20 20
21#include <cstdlib> 21#include <cstdlib>
22#include "plist.h"
22#include <plist/Integer.h> 23#include <plist/Integer.h>
23 24
24namespace PList 25namespace PList
diff --git a/src/Key.cpp b/src/Key.cpp
index 5f8d205..79265d5 100644
--- a/src/Key.cpp
+++ b/src/Key.cpp
@@ -19,6 +19,7 @@
19 */ 19 */
20 20
21#include <cstdlib> 21#include <cstdlib>
22#include "plist.h"
22#include <plist/Key.h> 23#include <plist/Key.h>
23 24
24namespace PList 25namespace PList
diff --git a/src/Makefile.am b/src/Makefile.am
index e4b39ae..1a416ad 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,6 +4,7 @@ AM_CPPFLAGS = \
4 -I$(top_srcdir)/libcnary/include 4 -I$(top_srcdir)/libcnary/include
5 5
6AM_CFLAGS = $(GLOBAL_CFLAGS) 6AM_CFLAGS = $(GLOBAL_CFLAGS)
7AM_CXXFLAGS = $(GLOBAL_CXXFLAGS)
7AM_LDFLAGS = $(GLOBAL_LDFLAGS) 8AM_LDFLAGS = $(GLOBAL_LDFLAGS)
8 9
9lib_LTLIBRARIES = \ 10lib_LTLIBRARIES = \
diff --git a/src/Node.cpp b/src/Node.cpp
index 08a91b0..0bd428a 100644
--- a/src/Node.cpp
+++ b/src/Node.cpp
@@ -19,6 +19,7 @@
19 */ 19 */
20 20
21#include <cstdlib> 21#include <cstdlib>
22#include "plist.h"
22#include <plist/Node.h> 23#include <plist/Node.h>
23#include <plist/Structure.h> 24#include <plist/Structure.h>
24#include <plist/Dictionary.h> 25#include <plist/Dictionary.h>
diff --git a/src/String.cpp b/src/String.cpp
index aee2358..2ddc28b 100644
--- a/src/String.cpp
+++ b/src/String.cpp
@@ -19,6 +19,7 @@
19 */ 19 */
20 20
21#include <cstdlib> 21#include <cstdlib>
22#include "plist.h"
22#include <plist/String.h> 23#include <plist/String.h>
23 24
24namespace PList 25namespace PList
diff --git a/src/Structure.cpp b/src/Structure.cpp
index 4be4e7d..670cce6 100644
--- a/src/Structure.cpp
+++ b/src/Structure.cpp
@@ -19,6 +19,7 @@
19 */ 19 */
20 20
21#include <cstdlib> 21#include <cstdlib>
22#include "plist.h"
22#include <plist/Structure.h> 23#include <plist/Structure.h>
23 24
24namespace PList 25namespace PList
diff --git a/src/Uid.cpp b/src/Uid.cpp
index e83ed27..8c73c80 100644
--- a/src/Uid.cpp
+++ b/src/Uid.cpp
@@ -19,6 +19,7 @@
19 */ 19 */
20 20
21#include <cstdlib> 21#include <cstdlib>
22#include "plist.h"
22#include <plist/Uid.h> 23#include <plist/Uid.h>
23 24
24namespace PList 25namespace PList
diff --git a/src/bplist.c b/src/bplist.c
index 953c2c7..93f0bc6 100644
--- a/src/bplist.c
+++ b/src/bplist.c
@@ -32,11 +32,11 @@
32#include <ctype.h> 32#include <ctype.h>
33#include <inttypes.h> 33#include <inttypes.h>
34 34
35#include <plist/plist.h>
36#include "plist.h" 35#include "plist.h"
37#include "hashtable.h" 36#include "hashtable.h"
38#include "bytearray.h" 37#include "bytearray.h"
39#include "ptrarray.h" 38#include "ptrarray.h"
39#include "plist/plist.h"
40 40
41#include <node.h> 41#include <node.h>
42 42
diff --git a/src/plist.h b/src/plist.h
index 178fb7c..a993e3a 100644
--- a/src/plist.h
+++ b/src/plist.h
@@ -26,8 +26,6 @@
26#include <config.h> 26#include <config.h>
27#endif 27#endif
28 28
29#include "plist/plist.h"
30
31#include <sys/types.h> 29#include <sys/types.h>
32#include <sys/stat.h> 30#include <sys/stat.h>
33 31
@@ -39,6 +37,20 @@
39#include <sys/time.h> 37#include <sys/time.h>
40#endif 38#endif
41 39
40#ifdef LIBPLIST_STATIC
41 #define PLIST_API
42#elif defined(_WIN32)
43 #define PLIST_API __declspec( dllexport )
44#else
45 #if __GNUC__ >= 4
46 #define PLIST_API __attribute__((visibility("default")))
47 #else
48 #define PLIST_API
49 #endif
50#endif
51
52#include "plist/plist.h"
53
42struct plist_data_s 54struct plist_data_s
43{ 55{
44 union 56 union