[Lldb-commits] [lldb] r204449 - More cleanup of win32.h.

Hafiz Abid Qadeer hafiz_abid at mentor.com
Fri Mar 21 03:15:42 PDT 2014


Author: abidh
Date: Fri Mar 21 05:15:34 2014
New Revision: 204449

URL: http://llvm.org/viewvc/llvm-project?rev=204449&view=rev
Log:
More cleanup of win32.h.
PATH_MAX is defined if it is not already defined. A duplicate
definition is removed. The declaration of struct timespec is moved
outside #ifdef _MSC_VER to make it available for mingw.

Modified:
    lldb/trunk/include/lldb/Host/windows/win32.h

Modified: lldb/trunk/include/lldb/Host/windows/win32.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/windows/win32.h?rev=204449&r1=204448&r2=204449&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/windows/win32.h (original)
+++ lldb/trunk/include/lldb/Host/windows/win32.h Fri Mar 21 05:15:34 2014
@@ -18,7 +18,9 @@ int vasprintf(char **ret, const char *fm
 char * strcasestr(const char *s, const char* find);
 char* realpath(const char * name, char * resolved);
 
+#ifndef PATH_MAX
 #define PATH_MAX MAX_PATH
+#endif
 
 #define O_NOCTTY    0
 #define O_NONBLOCK  0
@@ -57,8 +59,6 @@ char *dirname(char *path);
 int strcasecmp(const char* s1, const char* s2);
 int strncasecmp(const char* s1, const char* s2, size_t n);
 
-
-#define PATH_MAX MAX_PATH
 #define STDIN_FILENO  0
 #define STDOUT_FILENO 1
 #define STDERR_FILENO 2
@@ -69,6 +69,7 @@ int strncasecmp(const char* s1, const ch
 #define S_ISDIR(mode)  (((mode) & S_IFMT) == S_IFDIR)
 
 #define snprintf _snprintf
+#endif
 
 // timespec
 struct timespec
@@ -77,6 +78,5 @@ struct timespec
     long   tv_nsec;
 };
 
-#endif
 
 #endif  // LLDB_lldb_win32_h_





More information about the lldb-commits mailing list