[Libreoffice-commits] core.git: soltools/cpp
Jesús Corrius
jcorrius at gmail.com
Sat Nov 16 05:56:57 PST 2013
soltools/cpp/_include.c | 2 +-
soltools/cpp/_macro.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d83e581fb5074c575e942115b6930b00a81b21dd
Author: Jesús Corrius <jcorrius at gmail.com>
Date: Sat Nov 16 14:53:12 2013 +0100
Fix for VS 2013 compilation
I don´t know why it doesn´t work anymore, but the fix is trivial
may be related of using the Windows 8.0 SDK.
Change-Id: Ia09109b53d4f022a732ea781c98ddd4eb0c721d9
diff --git a/soltools/cpp/_include.c b/soltools/cpp/_include.c
index 40ff092..7a9044b 100644
--- a/soltools/cpp/_include.c
+++ b/soltools/cpp/_include.c
@@ -31,7 +31,7 @@
#include <string.h>
#include <fcntl.h>
-#if defined(__IBMC__) || defined(__EMX__)
+#if defined(__IBMC__) || defined(__EMX__) || defined(_MSC_VER)
# include <fcntl.h>
# define PATH_MAX _MAX_PATH
#endif
diff --git a/soltools/cpp/_macro.c b/soltools/cpp/_macro.c
index 251a1f6..b86af10 100644
--- a/soltools/cpp/_macro.c
+++ b/soltools/cpp/_macro.c
@@ -23,7 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(__IBMC__) || defined(__EMX__)
+#if defined(__IBMC__) || defined(__EMX__) || defined(_MSC_VER)
# define PATH_MAX _MAX_PATH
#endif
#include <limits.h>
More information about the Libreoffice-commits
mailing list