Skip to content

Commit

Permalink
Fix a few compile errors in more recent mingw32 build
Browse files Browse the repository at this point in the history
  • Loading branch information
n1000 committed Oct 16, 2016
1 parent edadddb commit ba4cae1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion make.def
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Ubuntu
#TOOLPATH=/usr/bin/
#CROSS=$(TOOLPATH)/i586-mingw32msvc-
#CROSS=$(TOOLPATH)/i686-w64-mingw32-

# OpenBSD
#TOOLPATH=/usr/local/mingw32/bin/
Expand Down
1 change: 0 additions & 1 deletion pib/psout.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@

#include "../tools/getoptv.h"
#include "../tools/number.h"
#include "../tools/chars.h"
#include "../tools/types.h"
#include "../tools/error.h"
#include "../tools/files.h"
Expand Down
6 changes: 0 additions & 6 deletions tools/chars.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
*
*--------------------------------------------------------------------*/

#ifndef isblank
#ifndef __CYGWIN__
#define isblank(c) ((char)(c) == ' ') || ((char)(c) == '\t')
#endif
#endif

#ifndef nobreak
#define nobreak(c) ((char)(c) != '\n') && ((int)(c) != EOF)
#endif
Expand Down
4 changes: 4 additions & 0 deletions tools/files.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@

#ifdef WIN32
#define FILE_FILEMODE S_IREAD|S_IWRITE
#ifndef S_IRGRP
#define S_IRGRP 0
#endif
#ifndef S_IROTH
#define S_IROTH 0
#endif
#else
#define FILE_FILEMODE S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH
#define O_BINARY 0
Expand Down

0 comments on commit ba4cae1

Please sign in to comment.