[libc-commits] [libc] f126bc9 - [libc] Fix conflict values from internal `limits.h` when used externally

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed Aug 7 08:09:12 PDT 2024


Author: Joseph Huber
Date: 2024-08-07T10:09:02-05:00
New Revision: f126bc984ce4d17473f76d507e31c12a91e84b5b

URL: https://github.com/llvm/llvm-project/commit/f126bc984ce4d17473f76d507e31c12a91e84b5b
DIFF: https://github.com/llvm/llvm-project/commit/f126bc984ce4d17473f76d507e31c12a91e84b5b.diff

LOG: [libc] Fix conflict values from internal `limits.h` when used externally

Added: 
    

Modified: 
    libc/utils/gpu/server/rpc_server.cpp

Removed: 
    


################################################################################
diff  --git a/libc/utils/gpu/server/rpc_server.cpp b/libc/utils/gpu/server/rpc_server.cpp
index ed23d22f0bc36..0d4d1adecabb4 100644
--- a/libc/utils/gpu/server/rpc_server.cpp
+++ b/libc/utils/gpu/server/rpc_server.cpp
@@ -11,6 +11,9 @@
 #define __has_builtin(x) 0
 #endif
 
+// Make sure these are included first so they don't conflict with the system.
+#include <limits.h>
+
 #include "llvmlibc_rpc_server.h"
 
 #include "src/__support/RPC/rpc.h"


        


More information about the libc-commits mailing list