summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:27:16 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:27:16 +0000
commitfbfe965054d8144946651b19085684af7f6715b9 (patch)
treef276c3a252afb26db23814413a7a7f5d4d486296 /include
parentc037348b5df0ac94ad4daba59f8bc9acf12ef623 (diff)
downloadxorg-lib-libXpm-fbfe965054d8144946651b19085684af7f6715b9.tar.gz
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330
Diffstat (limited to 'include')
-rw-r--r--include/X11/xpm.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/include/X11/xpm.h b/include/X11/xpm.h
index 786f3c3..8895323 100644
--- a/include/X11/xpm.h
+++ b/include/X11/xpm.h
@@ -22,7 +22,7 @@
* used in advertising or otherwise to promote the sale, use or other dealings
* in this Software without prior written authorization from GROUPE BULL.
*/
-/* $XFree86: xc/extras/Xpm/lib/xpm.h,v 1.2 2001/08/22 23:36:44 dawes Exp $ */
+/* $XFree86: xc/extras/Xpm/lib/xpm.h,v 1.3 2003/11/17 22:20:02 dawes Exp $ */
/*****************************************************************************\
* xpm.h: *
@@ -85,16 +85,6 @@ typedef unsigned long Pixel; /* Index into colormap */
# define PIXEL_ALREADY_TYPEDEFED
#endif
-/* make sure we know whether function prototypes are needed or not */
-#ifndef NeedFunctionPrototypes
-# if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-# define NeedFunctionPrototypes 1
-# else
-# define NeedFunctionPrototypes 0
-# endif
-#endif
-
-
/* Return ErrorStatus codes:
* null if full success
* positive if partial success
@@ -150,23 +140,19 @@ typedef struct {
} XpmInfo;
typedef int (*XpmAllocColorFunc)(
-#if NeedFunctionPrototypes
Display* /* display */,
Colormap /* colormap */,
char* /* colorname */,
XColor* /* xcolor */,
void* /* closure */
-#endif
);
typedef int (*XpmFreeColorsFunc)(
-#if NeedFunctionPrototypes
Display* /* display */,
Colormap /* colormap */,
Pixel* /* pixels */,
int /* npixels */,
void* /* closure */
-#endif
);
typedef struct {
@@ -290,13 +276,8 @@ typedef struct {
/* macros for forward declarations of functions with prototypes */
-#if NeedFunctionPrototypes
#define FUNC(f, t, p) extern t f p
#define LFUNC(f, t, p) static t f p
-#else
-#define FUNC(f, t, p) extern t f()
-#define LFUNC(f, t, p) static t f()
-#endif
/*