From e3cca1a275a55fcc5e074a7cc7aaa5d0764b9659 Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 27 Jul 2009 14:09:54 +0000 Subject: vcxsrv compiles now. Still run-time errors. --- X11/fonts/fontmisc.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'X11/fonts/fontmisc.h') diff --git a/X11/fonts/fontmisc.h b/X11/fonts/fontmisc.h index 7b8651706..92d4966ca 100644 --- a/X11/fonts/fontmisc.h +++ b/X11/fonts/fontmisc.h @@ -68,6 +68,7 @@ extern Atom MakeAtom ( char *string, unsigned len, int makeit ); extern int ValidAtom ( Atom atom ); extern char *NameForAtom (Atom atom); +#ifndef _MSC_VER #ifndef _HAVE_XALLOC_DECLS #define _HAVE_XALLOC_DECLS extern pointer Xalloc(unsigned long); @@ -75,14 +76,22 @@ extern pointer Xrealloc(pointer, unsigned long); extern void Xfree(pointer); extern pointer Xcalloc(unsigned long); #endif +#endif extern int f_strcasecmp(const char *s1, const char *s2); #ifndef xalloc +#ifdef _MSC_VER +#define xalloc(n) malloc ((unsigned) n) +#define xfree(p) free ((pointer) p) +#define xrealloc(p,n) realloc (p,n) +#define xcalloc(n,s) calloc(n, s) +#else #define xalloc(n) Xalloc ((unsigned) n) #define xfree(p) Xfree ((pointer) p) #define xrealloc(p,n) Xrealloc ((pointer)p,n) #define xcalloc(n,s) Xcalloc((unsigned) n * (unsigned) s) #endif +#endif #define lowbit(x) ((x) & (~(x) + 1)) #undef assert -- cgit v1.2.3