patch for better #includes in XPM src from Michal Vyskocil

svn: r12876
This commit is contained in:
Matthew Flatt 2008-12-17 13:05:35 +00:00
parent ed7713751a
commit 1d85f9ff3c
9 changed files with 33 additions and 3 deletions

View File

@ -36,7 +36,7 @@
\*****************************************************************************/ \*****************************************************************************/
#include "xpmP.h" #include "xpmP.h"
#if defined(SYSV) || defined(SVR4) || defined(VMS) #if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(__GNUC__)
#include <string.h> #include <string.h>
#else #else
#include <strings.h> #include <strings.h>

View File

@ -33,7 +33,7 @@
\*****************************************************************************/ \*****************************************************************************/
#include "xpmP.h" #include "xpmP.h"
#if defined(SYSV) || defined(SVR4) || defined(VMS) #if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(__GNUC__)
#include <string.h> #include <string.h>
#else #else
#include <strings.h> #include <strings.h>

View File

@ -33,6 +33,11 @@
\*****************************************************************************/ \*****************************************************************************/
#include "xpmP.h" #include "xpmP.h"
#if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(__GNUC__)
#include <string.h>
#else
#include <strings.h>
#endif
int int
XpmWriteFileFromBuffer(filename, buffer) XpmWriteFileFromBuffer(filename, buffer)

View File

@ -33,6 +33,11 @@
\*****************************************************************************/ \*****************************************************************************/
#include "xpmP.h" #include "xpmP.h"
#if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(__GNUC__)
#include <string.h>
#else
#include <strings.h>
#endif
LFUNC(WriteFile, int, (FILE *file, XpmImage *image, char *name, LFUNC(WriteFile, int, (FILE *file, XpmImage *image, char *name,
XpmInfo *info)); XpmInfo *info));

View File

@ -40,6 +40,11 @@
#include "xpmP.h" #include "xpmP.h"
#include <ctype.h> #include <ctype.h>
#if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(__GNUC__)
#include <string.h>
#else
#include <strings.h>
#endif
LFUNC(xpmVisualType, int, (Visual *visual)); LFUNC(xpmVisualType, int, (Visual *visual));

View File

@ -39,6 +39,11 @@ static char *RCS_Version = "$XpmVersion: 3.4g $";
#include "xpmP.h" #include "xpmP.h"
#include <ctype.h> #include <ctype.h>
#if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(__GNUC__)
#include <string.h>
#else
#include <strings.h>
#endif
LFUNC(ParseComment, int, (xpmData * mdata)); LFUNC(ParseComment, int, (xpmData * mdata));

View File

@ -34,6 +34,11 @@
\*****************************************************************************/ \*****************************************************************************/
#include "xpmP.h" #include "xpmP.h"
#if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(__GNUC__)
#include <string.h>
#else
#include <strings.h>
#endif
LFUNC(AtomMake, xpmHashAtom, (char *name, void *data)); LFUNC(AtomMake, xpmHashAtom, (char *name, void *data));
LFUNC(HashTableGrows, int, (xpmHashTable * table)); LFUNC(HashTableGrows, int, (xpmHashTable * table));

View File

@ -40,6 +40,11 @@
#include "xpmP.h" #include "xpmP.h"
#include <ctype.h> #include <ctype.h>
#if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(__GNUC__)
#include <string.h>
#else
#include <strings.h>
#endif
LFUNC(ParseValues, int, (xpmData *data, unsigned int *width, LFUNC(ParseValues, int, (xpmData *data, unsigned int *width,
unsigned int *height, unsigned int *ncolors, unsigned int *height, unsigned int *ncolors,

View File

@ -44,7 +44,7 @@
#include "xpmP.h" #include "xpmP.h"
#include <ctype.h> #include <ctype.h>
#if defined(SYSV) || defined(SVR4) || defined(VMS) #if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(__GNUC__)
#include <string.h> #include <string.h>
#else #else
#include <strings.h> #include <strings.h>