mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
9955a232e9
commit
176a96d55f
3 changed files with 8 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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...
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue