diff options
Diffstat (limited to 'libXpm/src')
-rw-r--r-- | libXpm/src/RdFToBuf.c | 2 | ||||
-rw-r--r-- | libXpm/src/RdFToI.c | 1 | ||||
-rw-r--r-- | libXpm/src/amigax.h | 4 | ||||
-rw-r--r-- | libXpm/src/config.h | 3 | ||||
-rw-r--r-- | libXpm/src/makefile | 34 |
5 files changed, 41 insertions, 3 deletions
diff --git a/libXpm/src/RdFToBuf.c b/libXpm/src/RdFToBuf.c index 7f8ebee61..485e666c7 100644 --- a/libXpm/src/RdFToBuf.c +++ b/libXpm/src/RdFToBuf.c @@ -52,9 +52,9 @@ #endif #if defined(FOR_MSW) || defined(WIN32) #include <io.h> +typedef long off_t; #define stat _stat #define fstat _fstat -#define fdopen _fdopen #define O_RDONLY _O_RDONLY #endif diff --git a/libXpm/src/RdFToI.c b/libXpm/src/RdFToI.c index bd09611b1..eff843dce 100644 --- a/libXpm/src/RdFToI.c +++ b/libXpm/src/RdFToI.c @@ -43,6 +43,7 @@ #include <errno.h> #include <sys/types.h> #include <sys/wait.h> +typedef int pid_t; #else #ifdef FOR_MSW #include <fcntl.h> diff --git a/libXpm/src/amigax.h b/libXpm/src/amigax.h index 213ed7619..b8f6ac4b7 100644 --- a/libXpm/src/amigax.h +++ b/libXpm/src/amigax.h @@ -48,8 +48,8 @@ /* really never used */ #define ZPixmap 2 -#define Bool int -#define Status int +typedef int Bool; +typedef int Status; #define True 1 #define False 0 diff --git a/libXpm/src/config.h b/libXpm/src/config.h new file mode 100644 index 000000000..c22e05936 --- /dev/null +++ b/libXpm/src/config.h @@ -0,0 +1,3 @@ +#include <unistd.h> + +#define NO_ZPIPE diff --git a/libXpm/src/makefile b/libXpm/src/makefile new file mode 100644 index 000000000..cfd21c66b --- /dev/null +++ b/libXpm/src/makefile @@ -0,0 +1,34 @@ +LIBRARY=libXpm + +INCLUDES += ..\include\X11 + +CSRCS = \ + Attrib.c \ + CrBufFrI.c \ + CrBufFrP.c \ + CrDatFrI.c \ + CrDatFrP.c \ + CrIFrBuf.c \ + CrIFrDat.c \ + CrIFrP.c \ + CrPFrBuf.c \ + CrPFrDat.c \ + CrPFrI.c \ + Image.c \ + Info.c \ + RdFToBuf.c \ + RdFToDat.c \ + RdFToI.c \ + RdFToP.c \ + WrFFrBuf.c \ + WrFFrDat.c \ + WrFFrI.c \ + WrFFrP.c \ + create.c \ + data.c \ + hashtab.c \ + misc.c \ + parse.c \ + rgb.c \ + scan.c + |