diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Array.cpp | 6 | ||||
-rw-r--r-- | src/Boolean.cpp | 1 | ||||
-rw-r--r-- | src/Dictionary.cpp | 1 | ||||
-rw-r--r-- | src/Integer.cpp | 1 | ||||
-rw-r--r-- | src/Key.cpp | 1 | ||||
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/Node.cpp | 1 | ||||
-rw-r--r-- | src/String.cpp | 1 | ||||
-rw-r--r-- | src/Structure.cpp | 1 | ||||
-rw-r--r-- | src/Uid.cpp | 1 | ||||
-rw-r--r-- | src/bplist.c | 2 | ||||
-rw-r--r-- | src/plist.h | 16 |
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 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <plist/Array.h> - +#include <cstdlib> #include <algorithm> #include <climits> -#include <cstdlib> +#include "plist.h" +#include <plist/Array.h> namespace PList { 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 @@ */ #include <cstdlib> +#include "plist.h" #include <plist/Boolean.h> namespace 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 @@ */ #include <cstdlib> +#include "plist.h" #include <plist/Dictionary.h> namespace 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 @@ */ #include <cstdlib> +#include "plist.h" #include <plist/Integer.h> namespace 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 @@ */ #include <cstdlib> +#include "plist.h" #include <plist/Key.h> namespace 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 = \ -I$(top_srcdir)/libcnary/include AM_CFLAGS = $(GLOBAL_CFLAGS) +AM_CXXFLAGS = $(GLOBAL_CXXFLAGS) AM_LDFLAGS = $(GLOBAL_LDFLAGS) lib_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 @@ */ #include <cstdlib> +#include "plist.h" #include <plist/Node.h> #include <plist/Structure.h> #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 @@ */ #include <cstdlib> +#include "plist.h" #include <plist/String.h> namespace 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 @@ */ #include <cstdlib> +#include "plist.h" #include <plist/Structure.h> namespace 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 @@ */ #include <cstdlib> +#include "plist.h" #include <plist/Uid.h> namespace 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 @@ #include <ctype.h> #include <inttypes.h> -#include <plist/plist.h> #include "plist.h" #include "hashtable.h" #include "bytearray.h" #include "ptrarray.h" +#include "plist/plist.h" #include <node.h> 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 @@ #include <config.h> #endif -#include "plist/plist.h" - #include <sys/types.h> #include <sys/stat.h> @@ -39,6 +37,20 @@ #include <sys/time.h> #endif +#ifdef LIBPLIST_STATIC + #define PLIST_API +#elif defined(_WIN32) + #define PLIST_API __declspec( dllexport ) +#else + #if __GNUC__ >= 4 + #define PLIST_API __attribute__((visibility("default"))) + #else + #define PLIST_API + #endif +#endif + +#include "plist/plist.h" + struct plist_data_s { union |