The Makefile now removes -fshort-wchar from compiler options. All files including Mozilla headers bracket them with #include "wchar_t_short.h" ... #include "wchar_t_default.h". wchar_t_short.h defines wchar_t as a macro expanding to uint16_t and wchar_t_default.h undefines the macro.
+videolink (1.2.5) unstable; urgency=low
+
+ * Added workaround for XULRunner 1.9's requirement of 16-bit wchar_t
+
+ -- Ben Hutchings <ben@decadent.org.uk> Thu, 12 Jun 2008 00:20:54 +0100
+
videolink (1.2.4) unstable; urgency=low
* Fixed warning messages from make when first compiled
: CPPFLAGS += $(shell pkg-config --cflags gtkmm-2.4)
$(sources_using_moz:%.cpp=.objs/%.o) \
- : CPPFLAGS += $(shell pkg-config --cflags $(moz_pc)) $(moz_cppflags_extra)
+ : CPPFLAGS += $(filter-out -fshort-wchar, \
+ $(shell pkg-config --cflags $(moz_pc)) $(moz_cppflags_extra))
# Non-virtual destructors are fine in XPCOM interface classes since
# instances are only ever called by the Release function which is virtual.
$(sources_using_moz:%.cpp=.objs/%.o) : CXXFLAGS += -Wno-non-virtual-dtor
#include <limits.h>
+#include "wchar_t_short.h"
#include <gtkmozembed_internal.h>
#if MOZ_VERSION_MAJOR == 1 && MOZ_VERSION_MINOR == 9
#include <gtkmozembed_glue.cpp>
#endif
+#include "wchar_t_default.h"
#include "xpcom_support.hpp"
#include <glibmm/signalproxy.h>
#include <gtkmm/bin.h>
+#include "wchar_t_short.h"
#include <gtkmozembed.h>
#include <nsCOMPtr.h>
+#include "wchar_t_default.h"
class browser_widget;
class nsIWebBrowser;
#include <iterator>
+#include "wchar_t_short.h"
#include <nsCOMPtr.h>
#include <nsIDOMNode.h>
+#include "wchar_t_default.h"
class child_iterator
: public std::iterator<std::input_iterator_tag, nsCOMPtr<nsIDOMNode>,
+videolink (1.2.5-1) unstable; urgency=low
+
+ * New upstream version
+ - Adds workaround for bug #485876
+
+ -- Ben Hutchings <ben@decadent.org.uk> Thu, 12 Jun 2008 00:22:20 +0100
+
videolink (1.2.4-1) unstable; urgency=low
* New upstream version
#ifndef MOZILLA_INTERNAL_API
#define MOZILLA_INTERNAL_API
#endif
+#include "wchar_t_short.h"
#include <nsIDocShell.h>
#include <nsPresContext.h>
+#include "wchar_t_default.h"
#include "event_state_manager.hpp"
#include "xpcom_support.hpp"
#include <iterator>
+#include "wchar_t_short.h"
#include <nsCOMPtr.h>
#include <nsIDOMHTMLCollection.h>
#include <nsIDOMNode.h>
+#include "wchar_t_default.h"
class nsIDOMDocument;
#include <langinfo.h>
+#include "wchar_t_short.h"
#include <nsCOMPtr.h>
#include <nsICharsetConverterManager.h>
#include <nsIComponentManager.h>
#include <nsIComponentRegistrar.h>
#include <nsServiceManagerUtils.h>
#include <nsIUnicodeEncoder.h>
+#include "wchar_t_default.h"
#include "null_prompt_service.hpp"
#include "videolink.hpp"
#ifndef INC_NULL_PROMPT_SERVICE_HPP
#define INC_NULL_PROMPT_SERVICE_HPP
+#include "wchar_t_short.h"
#include <nsIPromptService.h>
+#include "wchar_t_default.h"
class null_prompt_service : public nsIPromptService
{
#include "style_sheets.hpp"
+#include "wchar_t_short.h"
#include <nsCOMPtr.h>
#include <nsContentCID.h>
#include <nsIStyleSheetService.h>
#include <nsServiceManagerUtils.h>
#include <nsIURI.h>
#include <nsNetUtil.h>
+#include "wchar_t_default.h"
#include "xpcom_support.hpp"
#include <gtkmm/main.h>
#include <gtkmm/window.h>
+#include "wchar_t_short.h"
#include <ImageErrors.h>
#if MOZ_VERSION_MAJOR == 1 && MOZ_VERSION_MINOR == 9
#include <nsWeakPtr.h>
#else
#include <nsStringAPI.h>
#endif
+#include "wchar_t_default.h"
#include "browser_widget.hpp"
#include "child_iterator.hpp"
--- /dev/null
+#undef wchar_t
--- /dev/null
+#include <stdint.h>
+#undef wchar_t
+#define wchar_t uint16_t
#include <stdexcept>
+#include "wchar_t_short.h"
#include <nsError.h>
+#include "wchar_t_default.h"
namespace xpcom_support
{