* rclex.l (YY_NO_UNPUT): Define.
* rcparse.y (null_unichar): New static var.
(res_null_text): Use it rather than attempting to init from wchar_t.
* windres.c: Include assert.h and time.h before getopt.h.
Include config.h and unistd.h too.
+2005-02-17 Alan Modra <amodra@bigpond.net.au>
+
+ * deflex.l (YY_NO_UNPUT): Define.
+ * rclex.l (YY_NO_UNPUT): Define.
+ * rcparse.y (null_unichar): New static var.
+ (res_null_text): Use it rather than attempting to init from wchar_t.
+ * windres.c: Include assert.h and time.h before getopt.h.
+ Include config.h and unistd.h too.
+
2005-02-15 Nick Clifton <nickc@redhat.com>
* nlmconv.c: Provide a full prototype for the localtime() function
#include "defparse.h"
#include "dlltool.h"
+#define YY_NO_UNPUT
+
int linenumber;
%}
#include <assert.h>
+#define YY_NO_UNPUT
+
/* Whether we are in rcdata mode, in which we returns the lengths of
strings. */
static unsigned long default_style;
static unsigned long class;
static struct res_id res_text_field;
+static unichar null_unichar;
/* This is used for COMBOBOX, LISTBOX and EDITTEXT which
do not allow resource 'text' field in control definition. */
-static const struct res_id res_null_text = { 1, {{0, L""}}};
+static const struct res_id res_null_text = { 1, {{0, &null_unichar}}};
%}
* The res2coff program, written by Pedro A. Aranda <paag@tid.es>. */
+#include "config.h"
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include <assert.h>
+#include <time.h>
#include "bfd.h"
#include "getopt.h"
#include "bucomm.h"
#include "safe-ctype.h"
#include "obstack.h"
#include "windres.h"
-#include <assert.h>
-#include <time.h>
/* Used by resrc.c at least. */