File false-true-defines.patch of Package phantomjs

--- a/src/qt/qtwebkit/Source/WebCore/platform/text/LocaleICU.cpp	2016-03-15 18:36:24.000000000 +0100
+++ b/src/qt/qtwebkit/Source/WebCore/platform/text/LocaleICU.cpp	2021-05-09 00:39:40.751825940 +0200
@@ -42,6 +42,14 @@
 using namespace icu;
 using namespace std;
 
+#ifndef TRUE
+#define TRUE 1
+#endif
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+
 namespace WebCore {
 
 PassOwnPtr<Locale> Locale::create(const AtomicString& locale)
--- a/src/qt/qtwebkit/Source/WebCore/platform/text/TextBreakIteratorICU.cpp	2016-03-15 18:36:24.000000000 +0100
+++ b/src/qt/qtwebkit/Source/WebCore/platform/text/TextBreakIteratorICU.cpp	2021-05-09 00:39:55.663511667 +0200
@@ -30,6 +30,14 @@
 using namespace WTF;
 using namespace std;
 
+#ifndef TRUE
+#define TRUE 1
+#endif
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+
 namespace WebCore {
 
 static TextBreakIterator* setUpIterator(bool& createdIterator, TextBreakIterator*& iterator,
--- a/src/qt/qtwebkit/Source/WebCore/platform/text/TextCodecICU.cpp	2016-03-15 18:36:24.000000000 +0100
+++ b/src/qt/qtwebkit/Source/WebCore/platform/text/TextCodecICU.cpp	2021-05-09 00:38:40.681091966 +0200
@@ -42,6 +42,10 @@
 
 using std::min;
 
+#ifndef TRUE
+#define TRUE 1
+#endif
+
 namespace WebCore {
 
 const size_t ConversionBufferSize = 16384;
openSUSE Build Service is sponsored by