[Lldb-commits] [lldb] r204343 - Only define MAX_PATH if it is not defined already.

Hafiz Abid Qadeer hafiz_abid at mentor.com
Thu Mar 20 06:52:26 PDT 2014


Author: abidh
Date: Thu Mar 20 08:52:26 2014
New Revision: 204343

URL: http://llvm.org/viewvc/llvm-project?rev=204343&view=rev
Log:
Only define MAX_PATH if it is not defined already.
This gets rid of a lot warnings when compiling with mingw.

Modified:
    lldb/trunk/include/lldb/lldb-defines.h

Modified: lldb/trunk/include/lldb/lldb-defines.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/lldb-defines.h?rev=204343&r1=204342&r2=204343&view=diff
==============================================================================
--- lldb/trunk/include/lldb/lldb-defines.h (original)
+++ lldb/trunk/include/lldb/lldb-defines.h Thu Mar 20 08:52:26 2014
@@ -124,7 +124,7 @@
 #define LLDB_OPT_SET_10                 (1U << 9)
 #define LLDB_OPT_SET_FROM_TO(A, B)      (((1U << (B)) - 1) ^ (((1U << (A))-1) >> 1))
 
-#ifdef _WIN32
+#if defined (_WIN32) && !defined (MAX_PATH)
 #define MAX_PATH 260
 #endif
 





More information about the lldb-commits mailing list