[llvm-commits] [llvm] r74697 - /llvm/trunk/lib/System/Errno.cpp

Duncan Sands baldrick at free.fr
Thu Jul 2 05:09:59 PDT 2009


Author: baldrick
Date: Thu Jul  2 07:09:50 2009
New Revision: 74697

URL: http://llvm.org/viewvc/llvm-project?rev=74697&view=rev
Log:
Fix windows build, patch by Howard Su.

Modified:
    llvm/trunk/lib/System/Errno.cpp

Modified: llvm/trunk/lib/System/Errno.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Errno.cpp?rev=74697&r1=74696&r2=74697&view=diff

==============================================================================
--- llvm/trunk/lib/System/Errno.cpp (original)
+++ llvm/trunk/lib/System/Errno.cpp Thu Jul  2 07:09:50 2009
@@ -47,10 +47,10 @@
 # else
     strerror_r(errnum,buffer,MaxErrStrLen-1);
 # endif
-#elif HAVE_STRERROR_S  // Windows.
+#elif defined(HAVE_STRERROR_S)  // Windows.
     if (errnum)
       strerror_s(buffer, errnum);
-#elif HAVE_STRERROR
+#elif defined(HAVE_STRERROR)
   // Copy the thread un-safe result of strerror into
   // the buffer as fast as possible to minimize impact
   // of collision of strerror in multiple threads.





More information about the llvm-commits mailing list