commit 5dbd11beb81ef7c5ed022a33141a0261c725d2d7
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Thu Jul 3 15:11:30 2025 +0200

    Do not use just #if to test whether a macro is defined.
---
 src/support/FileName.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp
index a9b54f2bcd..e49f76e90c 100644
--- a/src/support/FileName.cpp
+++ b/src/support/FileName.cpp
@@ -683,8 +683,8 @@ bool FileName::destroyDirectory() const
 static int mymkdir(char const * pathname, unsigned long int mode)
 {
        // FIXME: why don't we have mode_t in lyx::mkdir prototype ??
-# if HAVE_MKDIR
-#  if MKDIR_TAKES_ONE_ARG
+# if defined(HAVE_MKDIR)
+#  if defined(MKDIR_TAKES_ONE_ARG)
        // MinGW32
        return ::mkdir(pathname);
        // FIXME: "Permissions of created directories are ignored on this 
system."
@@ -696,7 +696,7 @@ static int mymkdir(char const * pathname, unsigned long int 
mode)
        // plain Windows 32
        return CreateDirectory(pathname, 0) != 0 ? 0 : -1;
        // FIXME: "Permissions of created directories are ignored on this 
system."
-# elif HAVE__MKDIR
+# elif defined(HAVE__MKDIR)
        return ::_mkdir(pathname);
        // FIXME: "Permissions of created directories are ignored on this 
system."
 # else
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to