[cfe-commits] r173578 - <limits.h> includes <linux/limits.h> on Linux, no need to special-case it

Dmitri Gribenko gribozavr at gmail.com
Sat Jan 26 08:29:36 PST 2013


Author: gribozavr
Date: Sat Jan 26 10:29:36 2013
New Revision: 173578

URL: http://llvm.org/viewvc/llvm-project?rev=173578&view=rev
Log:
<limits.h> includes <linux/limits.h> on Linux, no need to special-case it

Modified:
    cfe/trunk/lib/Basic/FileManager.cpp
    cfe/trunk/lib/Lex/HeaderSearch.cpp
    cfe/trunk/lib/Lex/ModuleMap.cpp

Modified: cfe/trunk/lib/Basic/FileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/FileManager.cpp?rev=173578&r1=173577&r2=173578&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/FileManager.cpp (original)
+++ cfe/trunk/lib/Basic/FileManager.cpp Sat Jan 26 10:29:36 2013
@@ -41,9 +41,7 @@
 #endif
 #endif
 #if defined(LLVM_ON_UNIX)
-#if defined(__linux__)
-#include <linux/limits.h>
-#endif
+#include <limits.h>
 #endif
 using namespace clang;
 

Modified: cfe/trunk/lib/Lex/HeaderSearch.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/HeaderSearch.cpp?rev=173578&r1=173577&r2=173578&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/HeaderSearch.cpp (original)
+++ cfe/trunk/lib/Lex/HeaderSearch.cpp Sat Jan 26 10:29:36 2013
@@ -24,9 +24,7 @@
 #include "llvm/Support/Path.h"
 #include <cstdio>
 #if defined(LLVM_ON_UNIX)
-#if defined(__linux__)
-#include <linux/limits.h>
-#endif
+#include <limits.h>
 #endif
 using namespace clang;
 

Modified: cfe/trunk/lib/Lex/ModuleMap.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/ModuleMap.cpp?rev=173578&r1=173577&r2=173578&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/ModuleMap.cpp (original)
+++ cfe/trunk/lib/Lex/ModuleMap.cpp Sat Jan 26 10:29:36 2013
@@ -29,9 +29,7 @@
 #include "llvm/Support/raw_ostream.h"
 #include <stdlib.h>
 #if defined(LLVM_ON_UNIX)
-#if defined(__linux__)
-#include <linux/limits.h>
-#endif
+#include <limits.h>
 #endif
 using namespace clang;
 





More information about the cfe-commits mailing list