tweaks for mingw defines

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30003 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-03-19 12:26:42 +00:00
parent 9955a232e9
commit 176a96d55f
3 changed files with 8 additions and 2 deletions

View file

@ -38,7 +38,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#if defined(__MINGW__)
#if defined(__MINGW32__) || defined(__MINGW64__)
#include <io.h>
#include <winsock2.h>

View file

@ -200,7 +200,7 @@ struct StackBlockClass {
const char *types;
};
#if defined(__MINGW__)
#if defined(__MINGW32__) || defined(__MINGW64__)
/* FIXME ... evil hack ... declare symbol to avoid linker error on windows
* where the compiler/linker doesn't support a weak reference.
* This obviously breaks the code below...

View file

@ -26,6 +26,12 @@
#include "config.h"
#if !defined(__MINGW__)
# if defined(__MINGW32__) || defined(__MINGW64__)
# define __MINGW__
# endif
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>