summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison-at-virgin.net>2008-04-29 10:19:55 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2008-04-29 10:19:55 +0100
commitc59dd27ecb1751f0b097046b2f892028e5a10a3e (patch)
tree8e25e4ab8aa66ff0ef6ca08c0c48567ae11fcf85
parent8e95cb765e88d36c35f868f650c86c62c31ad635 (diff)
Fix some build issues for Win32 platforms
-rw-r--r--src/Initialize.c2
-rw-r--r--src/Intrinsic.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/src/Initialize.c b/src/Initialize.c
index bbc84b9..5813351 100644
--- a/src/Initialize.c
+++ b/src/Initialize.c
@@ -188,7 +188,7 @@ void _XtInherit(void)
#endif
-#if defined(__CYGWIN__)
+#ifdef WIN32
/*
* The Symbol _XtInherit is used in two different manners.
* First it could be used as a generic function and second
diff --git a/src/Intrinsic.c b/src/Intrinsic.c
index 482df0a..df5c56d 100644
--- a/src/Intrinsic.c
+++ b/src/Intrinsic.c
@@ -952,9 +952,6 @@ static Boolean TestFile(
#else
(status.st_mode & S_IFMT) != S_IFDIR); /* not a directory */
#endif /* X_NOT_POSIX else */
-#if defined(WIN32)
- XtStackFree ((XtPointer)bufp, buf);
-#endif
return ret;
#else /* VMS */
return TRUE; /* Who knows what to do here? */
@@ -1313,7 +1310,7 @@ static void FillInLangSubs(
*/
static char *implementation_default_path(void)
{
-#if defined(WIN32) || defined(__UNIXOS2__)
+#if defined(__UNIXOS2__)
/* if you know how to pass % thru the compiler let me know */
static char xfilesearchpath[] = XFILESEARCHPATHDEFAULT;
static Bool fixed;