Fixed Windows compile with MinGW 4.8.2

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.5@7410 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-06-21 19:18:26 +00:00
parent d159420114
commit a4b79f2346
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ linux-g++-64 {
win32 { win32 {
lessThan(QT_MAJOR_VERSION, 5) { lessThan(QT_MAJOR_VERSION, 5) {
# from Qt 4.7.4 and 4.8+ the mkspecs has changed making dyn libs unusable anymore on windows : QMAKE_LFLAGS = # from Qt 4.7.4 and 4.8+ the mkspecs has changed making dyn libs unusable anymore on windows : QMAKE_LFLAGS =
QMAKE_LFLAGS = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc QMAKE_LFLAGS = -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
} }
# Switch on extra warnings # Switch on extra warnings

View File

@ -28,7 +28,7 @@
*/ */
/* Solaris and Windows do not provide vasprintf() or asprintf(). */ /* Solaris and Windows do not provide vasprintf() or asprintf(). */
#if defined(__WIN32) || (defined(__SVR4) && defined(__sun)) #if (defined(__WIN32) && !defined(__MINGW64_VERSION_MAJOR)) || (defined(__SVR4) && defined(__sun))
int vasprintf( char **sptr, char *fmt, va_list argv ) int vasprintf( char **sptr, char *fmt, va_list argv )
{ {
int wanted = vsnprintf( *sptr = NULL, 0, fmt, argv ); int wanted = vsnprintf( *sptr = NULL, 0, fmt, argv );