Simplify and delay extracting DebugLoc elements, scope and InlinedAt, as much as...
[oota-llvm.git] / include / llvm / Support / Format.h
index df03f66ddc7d1ea09ec7290b77510d12e228cf4e..f64e3db7d6506acb6e7443d5a7a80e2df1c06713 100644 (file)
 #ifndef LLVM_SUPPORT_FORMAT_H
 #define LLVM_SUPPORT_FORMAT_H
 
+#include <cassert>
 #include <cstdio>
-#ifdef WIN32
+#ifdef _MSC_VER
+// FIXME: This define is wrong:
+//  - _snprintf does not guarantee that trailing null is always added - if
+//    there is no space for null, it does not report any error.
+//  - According to C++ standard, snprintf should be visible in the 'std' 
+//    namespace - this define makes this impossible.
 #define snprintf _snprintf
 #endif