+2010-08-10 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
+
+ Fix compatibility with GCC 4.x.
+ * Makefile.am (setup_LDFLAGS): Pass -static to compiler instead of
+ linker so that libgcc is statically linked as well.
+ (autoload.o): Disable optimization.
+ * localdir.cc (browse_cb): Fix "jump to case label crosses
+ initialization" error.
+ * mklink2.cc (sfli): Fix "non-local variable uses anonymous type"
+ warning.
+ * ntdll.h: Fix "redeclared without dllimport attribute: previous
+ dllimport ignored" warnings.
+ * package_message.h (display): Fix "'exit' was not declared in this
+ scope" error.
+
2010-08-10 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* Makefile.am: Treat libgetopt++ as full-fledged SUBDIRS.
libinilex.a \
libgetopt++/libgetopt++.la -lgcrypt -lgpg-error \
-lshlwapi -lcomctl32 -lole32 -lwsock32 -lnetapi32 -luuid -llzma -lbz2 -lz
-setup_LDFLAGS = -mwindows -Wl,-static -static-libtool-libs
+setup_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
setup_SOURCES = \
AntiVirus.cc \
AntiVirus.h \
libmd5-rfc/md5.c \
libmd5-rfc/md5.h
+# autoload code does not optimize properly with gcc-4.x
+autoload.o: CFLAGS += -O0
+
VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
$(srcdir)/ChangeLog)
SendMessage (h, BFFM_SETSELECTION, TRUE, (LPARAM) local_dir.c_str());
break;
case BFFM_SELCHANGED:
- // Make a note of each new dir we successfully select, so that
- // we know where to create the new directory if an invalid name
- // is entered in the text box.
- LPITEMIDLIST pidl = reinterpret_cast<LPITEMIDLIST>(lp);
- SHGetPathFromIDList (pidl, dirname);
- break;
+ {
+ // Make a note of each new dir we successfully select, so that
+ // we know where to create the new directory if an invalid name
+ // is entered in the text box.
+ LPITEMIDLIST pidl = reinterpret_cast<LPITEMIDLIST>(lp);
+ SHGetPathFromIDList (pidl, dirname);
+ break;
+ }
case BFFM_VALIDATEFAILED:
// See if user wants to create a dir in the last successfully-selected.
CHAR tempname[MAX_PATH];
: mkcygsymlink_9x (from, to);
}
-struct {
+static struct {
FILE_LINK_INFORMATION fli;
WCHAR namebuf[32768];
} sfli;
#ifndef SETUP_NTDLL_H
#define SETUP_NTDLL_H
+#define NTOSAPI
+
#include "ddk/ntapi.h"
#include "ddk/ntifs.h"
#include "UserSettings.h"
#include "state.h"
+#include <stdlib.h>
#include <windows.h>
class packagemessage