[llvm-commits] [llvm] r141093 - /llvm/trunk/lib/TableGen/TGPreprocessor.cpp

Francois Pichet pichet2000 at gmail.com
Tue Oct 4 09:28:07 PDT 2011


Author: fpichet
Date: Tue Oct  4 11:28:07 2011
New Revision: 141093

URL: http://llvm.org/viewvc/llvm-project?rev=141093&view=rev
Log:
Unbreak MSVC build.

Modified:
    llvm/trunk/lib/TableGen/TGPreprocessor.cpp

Modified: llvm/trunk/lib/TableGen/TGPreprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/TGPreprocessor.cpp?rev=141093&r1=141092&r2=141093&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/TGPreprocessor.cpp (original)
+++ llvm/trunk/lib/TableGen/TGPreprocessor.cpp Tue Oct  4 11:28:07 2011
@@ -24,6 +24,10 @@
 #include <cstdlib>
 #include <cstring>
 
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif
+
 namespace llvm {
 typedef std::map<std::string, std::string> TGPPEnvironment;
 





More information about the llvm-commits mailing list