From 762b3a4c2246ac817da7bac7ccb78889f117ca93 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 4 May 2012 14:18:12 +0300 Subject: DJGPP --> __DJGPP__ --- missing_d/snprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'missing_d/snprintf.c') diff --git a/missing_d/snprintf.c b/missing_d/snprintf.c index 254a8e0b..12e50925 100644 --- a/missing_d/snprintf.c +++ b/missing_d/snprintf.c @@ -86,10 +86,10 @@ safe_tmpfile (void) if ((fd = mkstemp (tmpfilename)) < 0) return NULL; -#if ! defined(DJGPP) && ! defined(MSDOS) && ! defined(_MSC_VER) \ +#if ! defined(__DJGPP__) && ! defined(MSDOS) && ! defined(_MSC_VER) \ && ! defined(_WIN32) && ! defined(__CRTRSXNT__) && ! defined(__EMX__) \ && ! defined(__MINGW32__) && ! defined(__WIN32__) - /* If not MS, unlink after opening. */ + /* If not MS or OS/2, unlink after opening. */ unlink (tmpfilename); free(tmpfilename); tmpfilename = NULL; -- cgit v1.2.3 From 99290f5ca37cb905f7f1dab9be416b2e2057d243 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 13 Sep 2012 17:27:53 +0300 Subject: z/OS changes from Dave Pitts and Arnold. --- missing_d/snprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'missing_d/snprintf.c') diff --git a/missing_d/snprintf.c b/missing_d/snprintf.c index 12e50925..6cee2bed 100644 --- a/missing_d/snprintf.c +++ b/missing_d/snprintf.c @@ -53,14 +53,14 @@ static void close_safe_f() static FILE * safe_tmpfile (void) { - static short first = TRUE; + static bool first = true; static const char template[] = "snprintfXXXXXX"; int fd; static char *tmpdir = NULL; static int len = 0; if (first) { - first = FALSE; + first = false; /* * First try Unix stanadard env var, then Windows var, * then fall back to /tmp. -- cgit v1.2.3