Ok I added the #define WIN32 thing and also, I changed Makefile to Makefile.unix and makefile.cygwin to just makefile.
I remade and now my first error is:
mud.h:5442: parse error before "HANDLE"
I checked the code and here is the block of code:
typedef struct
{
HANDLE hDirectory;
WIN32_FIND_DATA Win32FindData;
struct dirent dirinfo;
char sDirName[MAX_PATH];
} DIR;
Why isn't there a name for the struct?
and here are the full of the mud.h errors here:
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG comm.c
In file included from comm.c:28:
mud.h:28:23: winsock.h: No such file or directory (ENOENT)
In file included from comm.c:28:
mud.h:30: warning: ignoring #pragma warning
mud.h:5430: conflicting types for `gettimeofday'
c:/djgpp/include/time.h:86: previous declaration of `gettimeofday'
mud.h:5438: warning: useless keyword or type name in empty declaration
mud.h:5442: parse error before "HANDLE"
mud.h:5442: warning: no semicolon at end of struct or union
mud.h:5443: warning: type defaults to `int' in declaration of `Win32FindData'
mud.h:5443: warning: data definition has no type or storage class
mud.h:5445: `MAX_PATH' undeclared here (not in a function)
mud.h:5446: parse error before '}' token
mud.h:5446: warning: type defaults to `int' in declaration of `DIR'
mud.h:5446: warning: data definition has no type or storage class
mud.h:5449: parse error before '*' token
mud.h:5449: warning: type defaults to `int' in declaration of `opendir'
mud.h:5449: warning: data definition has no type or storage class
mud.h:5450: parse error before '*' token
mud.h:5451: parse error before '*' token