From 01a023d7078f3325f626e8d499307b0d92eef64d Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 3 Jun 2014 22:28:54 -0700 Subject: unifdef -U__UNIXOS2__ Signed-off-by: Alan Coopersmith --- xrdb.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/xrdb.c b/xrdb.c index 7475446..09422ef 100644 --- a/xrdb.c +++ b/xrdb.c @@ -65,12 +65,7 @@ #define SCREEN_RESOURCES "SCREEN_RESOURCES" #ifndef CPP -#ifdef __UNIXOS2__ -/* expected to be in path */ -#define CPP "cpp" -#else #define CPP "/usr/lib/cpp" -#endif /* __UNIXOS2__ */ #endif /* CPP */ #define INIT_BUFFER_SIZE 10000 @@ -1011,15 +1006,8 @@ main(int argc, char *argv[]) #ifdef WIN32 strcpy(tmpname2, "xrdbD_XXXXXX"); strcpy(tmpname3, "\\temp\\xrdbD_XXXXXX"); -#else -#ifdef __UNIXOS2__ - { char *tmpdir=getenv("TMP"); - if (!tmpdir) tmpdir="/"; - sprintf(tmpname2, "%s/xrdbD_XXXXXX",tmpdir); - } #else strcpy(tmpname2, "/tmp/xrdbD_XXXXXX"); -#endif #endif (void) mktemp(tmpname2); } @@ -1036,16 +1024,9 @@ main(int argc, char *argv[]) char inputbuf[1024]; #ifdef WIN32 strcpy(tmpname, "\\temp\\xrdb_XXXXXX"); -#else -#ifdef __UNIXOS2__ - { char *tmpdir=getenv("TMP"); - if (!tmpdir) tmpdir="/"; - sprintf(tmpname, "%s/xrdb_XXXXXX",tmpdir); - } #else strcpy(tmpname, "/tmp/xrdb_XXXXXX"); #endif -#endif #ifndef HAVE_MKSTEMP (void) mktemp(tmpname); filename = tmpname; -- cgit v1.2.3