Fix libwps debug build
Change-Id: I6482b0c1844578f67129e74ae64b981100924b90
This commit is contained in:
parent
dd49c193de
commit
6afc233cd4
2 changed files with 30 additions and 0 deletions
27
libwps/libwps-0.2.6.patch
Normal file
27
libwps/libwps-0.2.6.patch
Normal file
|
@ -0,0 +1,27 @@
|
|||
--- misc/libwps-0.2.6/src/lib/WPS4.cpp 2012-05-13 23:10:44.000000000 +0200
|
||||
+++ misc/build/libwps-0.2.6/src/lib/WPS4.cpp 2012-05-14 08:44:20.720435146 +0200
|
||||
@@ -827,9 +827,9 @@
|
||||
{
|
||||
std::bitset<8> b(s[i]);
|
||||
r.append(b.to_string());
|
||||
- char buf[20];
|
||||
- sprintf(buf, "(%02u,0x%02x) ", (uint8_t)s[i],(uint8_t)s[i]);
|
||||
- r.append(buf);
|
||||
+ WPXString buf;
|
||||
+ buf.sprintf("(%02u,0x%02x) ", (uint8_t)s[i],(uint8_t)s[i]);
|
||||
+ r.append(buf.cstr());
|
||||
}
|
||||
return r;
|
||||
}
|
||||
--- misc/libwps-0.2.6/src/lib/libwps_internal.h 2012-05-13 23:10:44.000000000 +0200
|
||||
+++ misc/build/libwps-0.2.6/src/lib/libwps_internal.h 2012-05-14 08:43:38.321547822 +0200
|
||||
@@ -25,6 +25,9 @@
|
||||
#include <libwpd-stream/libwpd-stream.h>
|
||||
#include <libwpd/libwpd.h>
|
||||
#include <string>
|
||||
+#ifdef DEBUG
|
||||
+#include <stdio.h>
|
||||
+#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__DJGPP__)
|
||||
typedef signed char int8_t;
|
|
@ -52,6 +52,9 @@ INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpd-stream
|
|||
TARFILE_NAME=libwps-0.2.6
|
||||
TARFILE_MD5=6f0d48db6e8a96d4c0eafb029ccc07b6
|
||||
|
||||
PATCH_FILES=\
|
||||
$(TARFILE_NAME).patch
|
||||
|
||||
BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)
|
||||
BUILD_DIR=src/lib
|
||||
|
||||
|
|
Loading…
Reference in a new issue