Fixed compile of the libraries with MinGW 4.8 on Windows.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6814 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-10-07 23:11:10 +00:00
parent 9b8d597c0d
commit 13e7ac8b43
11 changed files with 26 additions and 20 deletions

View file

@ -23,6 +23,7 @@
#ifdef WINDOWS_SYS
#include <windows.h>
#include <malloc.h>
#else
#include <vector>
#include <stdarg.h>

View file

@ -28,17 +28,8 @@
#ifndef RSWIN_H_
#define RSWIN_H_
#ifdef WINDOWS_SYS
#ifdef _WIN32_WINNT
#error "Please include \"util/rswin.h\" *before* any other one as _WIN32_WINNT needs to predefined"
#endif
// This defines the platform to be WinXP or later and is needed for getaddrinfo
// It must be declared before pthread.h includes windows.h
#define _WIN32_WINNT 0x0501
#include <windows.h>
#include <string>