summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2023-01-15 18:27:13 -0500
committerPaul Smith <psmith@gnu.org>2023-01-15 18:27:13 -0500
commit6128c3e266940ebc3c5e5a4a54241354334d1ebc (patch)
treeb322c061c1b04aceb25083e9ef3a0b16e9648df8 /src/misc.c
parentceb52b5d1b10ce0f5a1ab090e1911cdde6f7d98a (diff)
downloadmake-git-6128c3e266940ebc3c5e5a4a54241354334d1ebc.tar.gz
Rename WINDOWS32 macro to MK_OS_W32
* configure.ac: Set MK_OS_W32 to 1 if we're on Windows32. * src/config.h.W32: Ditto. * mk/Windows32.mk: Ditto. * src/makeint.h: Convert #if refs to WINDOWS32, to use MK_OS_W32. * src/*: Ditto. * src/w32/*: Ditto. * gl/lib/*: Ditto.
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc.c b/src/misc.c
index f5bfee4c..cbd2cacf 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -23,7 +23,7 @@ this program. If not, see <https://www.gnu.org/licenses/>. */
#include <assert.h>
#include <stdarg.h>
-#ifdef WINDOWS32
+#if MK_OS_W32
# include <windows.h>
# include <io.h>
#endif
@@ -525,7 +525,7 @@ spin (const char* type)
{
fprintf (stderr, "SPIN on %s\n", filenm);
do
-#ifdef WINDOWS32
+#if MK_OS_W32
Sleep (1000);
#else
sleep (1);
@@ -585,7 +585,7 @@ get_tmpdir ()
if (!tmpdir)
{
-#if defined (__MSDOS__) || defined (WINDOWS32) || defined (__EMX__)
+#if defined (__MSDOS__) || MK_OS_W32 || defined (__EMX__)
# define TMP_EXTRAS "TMP", "TEMP",
#else
# define TMP_EXTRAS