summaryrefslogtreecommitdiff
path: root/src/remake.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/remake.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/remake.c')
-rw-r--r--src/remake.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/remake.c b/src/remake.c
index d0d6fab1..fb51811c 100644
--- a/src/remake.c
+++ b/src/remake.c
@@ -33,7 +33,7 @@ this program. If not, see <https://www.gnu.org/licenses/>. */
#if MK_OS_VMS
#include <starlet.h>
#endif
-#ifdef WINDOWS32
+#if MK_OS_W32
#include <windows.h>
#include <io.h>
#include <sys/stat.h>
@@ -1469,7 +1469,7 @@ f_mtime (struct file *file, int search)
FILE_TIMESTAMP adjusted_mtime = mtime;
-#if defined(WINDOWS32) || defined(__MSDOS__)
+#if MK_OS_W32 || defined(__MSDOS__)
/* Experimentation has shown that FAT filesystems can set file times
up to 3 seconds into the future! Play it safe. */
@@ -1547,14 +1547,14 @@ static FILE_TIMESTAMP
name_mtime (const char *name)
{
FILE_TIMESTAMP mtime;
-#if defined(WINDOWS32)
+#if MK_OS_W32
struct STAT st;
#else
struct stat st;
#endif
int e;
-#if defined(WINDOWS32)
+#if MK_OS_W32
{
char tem[MAX_PATH+1], *tstart, *tend;
const char *p = name + strlen (name);
@@ -1583,7 +1583,7 @@ name_mtime (const char *name)
tend = &tem[0];
}
-#if defined(WINDOWS32)
+#if MK_OS_W32
e = STAT (tem, &st);
#else
e = stat (tem, &st);
@@ -1691,7 +1691,7 @@ library_search (const char *lib, FILE_TIMESTAMP *mtime_ptr)
{
"/lib",
"/usr/lib",
-#if defined(WINDOWS32) && !defined(LIBDIR)
+#if MK_OS_W32 && !defined(LIBDIR)
/*
* This is completely up to the user at product install time. Just define
* a placeholder.