diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-05-30 17:50:27 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-05-30 17:52:01 +0300 |
commit | 743840a403640c86dbd60cef9a3ff296c21e4287 (patch) | |
tree | 9d4de82eaf0a480b87de73fd14f0ca9c136c60c7 /graphite | |
parent | 5a4e27252d9a86b22d2f152f590cd1cb54fe027f (diff) |
We build graphite as a static library, drop conditional dllimport/export
We would need to pass -DGR2_STATIC when compiling graphite-using code
otherwise.
Also make patch apply without fuzz.
Diffstat (limited to 'graphite')
-rw-r--r-- | graphite/graphite2-0.9.2.patch | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/graphite/graphite2-0.9.2.patch b/graphite/graphite2-0.9.2.patch index 35f0bd23650b..aca8b63ea254 100644 --- a/graphite/graphite2-0.9.2.patch +++ b/graphite/graphite2-0.9.2.patch @@ -371,15 +371,13 @@ diff -r 5369cdd12120 src/gr_slot.cpp diff current src/List.h --- misc/build/graphite2-0.9.2/src/List.h Sat Feb 12 22:54:16 2011 +0700 +++ misc/build/graphite2-0.9.2/src/List.h Fri Feb 18 16:05:40 2011 +0700 -@@ -51,6 +51,6 @@ +@@ -51,5 +51,5 @@ template <typename I> Vector(I first, const I last) : m_first(0), m_last(0), m_end(0) { insert(begin(), first, last); } - ~Vector() { free(m_first); } + ~Vector() { clear(); free(m_first); } iterator begin() { return m_first; } - const_iterator begin() const { return m_first; } - --- misc/graphite2-0.9.2/src/Code.cpp 2011-02-12 16:54:16.000000000 +0100 +++ misc/build/graphite2-0.9.2/src/Code.cpp 2011-03-11 11:28:11.700215286 +0100 @@ -168,7 +168,7 @@ @@ -393,12 +391,24 @@ diff current src/List.h 0,0,0,0,0,0,0,0, --- misc/graphite2-0.9.2/include/graphite2/Types.h 2011-02-12 16:54:16.000000000 +0100 +++ misc/build/graphite2-0.9.2/include/graphite2/Types.h 2011-03-15 21:38:06.264788098 +0100 -@@ -36,7 +36,7 @@ - }; +@@ -36,19 +36,7 @@ // Definitions for library publicly exported symbols --#if defined _WIN32 || defined __CYGWIN__ -+#if ( defined _WIN32 || defined __CYGWIN__ ) && !defined GR2_STATIC - #ifdef GR2_EXPORTING - #ifdef __GNUC__ - #define GR2_API __attribute__((dllexport)) + #if defined _WIN32 || defined __CYGWIN__ +- #ifdef GR2_EXPORTING +- #ifdef __GNUC__ +- #define GR2_API __attribute__((dllexport)) +- #else +- #define GR2_API __declspec(dllexport) +- #endif +- #else +- #ifdef __GNUC__ +- #define GR2_API __attribute__((dllimport)) +- #else +- #define GR2_API __declspec(dllimport) +- #endif +- #endif ++ #define GR2_API + #define GR2_LOCAL + #else + #if __GNUC__ >= 4 |