home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!walter!dino!dana
- From: dana@dino.bellcore.com (Dana Chee)
- Subject: Re: Xos on SVR4
- Message-ID: <1992Dec16.155041.17763@walter.bellcore.com>
- Sender: news@walter.bellcore.com
- Nntp-Posting-Host: dino.bellcore.com
- Reply-To: dana@thumper.bellcore.com
- Organization: Packet Communications Research Group (Bellcore)
- References: <BzCrCH.H04@newsserver.technet.sg>
- Date: Wed, 16 Dec 92 15:50:41 GMT
- Lines: 37
-
- In article <BzCrCH.H04@newsserver.technet.sg>, swispl@solomon.technet.sg (SW International) writes:
- |> Just a small q:
- |>
- |> Some programs (like Ghostscript) want -DSVR4 defined on such a
- |> system, but *not* -DSYSV. But on all SVR4's I've seen so far,
- |> Xos.h searches for string.h only when SYSV is defined. And SVR4 has
- |> string, not strings...
- |>
- |> Am I missing something?
- |>
- |> Mathias
- |>
-
- No, Xos.h is only used in R4. In R5, Xosdefs.h is used, and here's
- how it handles things (as you see, it will act properly for a SVR4
- system -- at least my Solaris one):
-
- #include <X11/Xosdefs.h>
- #ifndef X_NOT_STDC_ENV
- #include <string.h> /* for XtNewString */
- #else
- #ifdef SYSV
- #include <string.h>
- #else
- #include <strings.h>
- #endif /* SYSV else */
- #endif /* !X_NOT_STDC_ENV else */
- #endif /* XT_BC else */
-
- --
- +*************************************************************************+
- * Dana Chee (201) 829-4488 *
- * Bellcore *
- * Room 2P-298 *
- * 445 South Street ARPA: dana@bellcore.com *
- * Morristown, NJ 07960-1910 UUCP: {gateways}!bellcore!dana *
- +*************************************************************************+
-