Port to mingw

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@12912 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-03-01 10:34:01 +00:00
parent 88c2c2f4ac
commit eab300ee88
2 changed files with 18 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2002-03-01 Richard Frith-Macdonald <rfm@gnu.org>
* user_home.c: Port to MINGW
2002-02-28 Adam Fedor <fedor@gnu.org>
* target.make (darwin5): Correct compile flags. Add

View file

@ -19,8 +19,21 @@
#include "config.h"
#ifdef __MINGW32__
#ifndef __MINGW__
#define __MINGW__
#endif
#ifndef __WIN32__
#define __WIN32__
#endif
#endif
#include <stdio.h>
#if defined(__MINGW__)
# include <windows.h>
#endif
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
@ -56,7 +69,7 @@ int main (int argc, char** argv)
#else
struct passwd *pw;
#endif
const char *loginName = 0;
char *loginName = 0;
if (loginName == 0)
{