File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88#undef htonl
99#undef htons
1010
11- uint32_t __cpp2rust_ntohl (uint32_t x );
12- uint16_t __cpp2rust_ntohs (uint16_t x );
13- uint32_t __cpp2rust_htonl (uint32_t x );
14- uint16_t __cpp2rust_htons (uint16_t x );
11+ uint32_t cpp2rust_ntohl (uint32_t x );
12+ uint16_t cpp2rust_ntohs (uint16_t x );
13+ uint32_t cpp2rust_htonl (uint32_t x );
14+ uint16_t cpp2rust_htons (uint16_t x );
1515
16- #define ntohl (x ) __cpp2rust_ntohl (x)
17- #define ntohs (x ) __cpp2rust_ntohs (x)
18- #define htonl (x ) __cpp2rust_htonl (x)
19- #define htons (x ) __cpp2rust_htons (x)
16+ #define ntohl (x ) cpp2rust_ntohl (x)
17+ #define ntohs (x ) cpp2rust_ntohs (x)
18+ #define htonl (x ) cpp2rust_htonl (x)
19+ #define htons (x ) cpp2rust_htons (x)
Original file line number Diff line number Diff line change 99#include <stdbool.h>
1010#endif
1111
12- void __cpp2rust_assert_fail (bool condition ) __attribute__((noreturn ));
12+ void cpp2rust_assert_fail (bool condition ) __attribute__((noreturn ));
1313
14- #define assert (expr ) __cpp2rust_assert_fail (expr)
14+ #define assert (expr ) cpp2rust_assert_fail (expr)
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ static inline std::vector<std::string> getPlatformClangFlags() {
1111 " -resource-dir=" CLANG_RESOURCE_DIR,
1212 " -I" COMPAT_INCLUDE_DIR,
1313 " -D_FORTIFY_SOURCE=0" ,
14+ " -Wno-gnu-include-next" ,
1415 };
1516#ifdef MACOS_SDK_PATH
1617 flags.push_back (" -isysroot" MACOS_SDK_PATH);
Original file line number Diff line number Diff line change 44#include < assert.h>
55
66void f1 (bool condition) {
7- return __cpp2rust_assert_fail (condition);
7+ return cpp2rust_assert_fail (condition);
88}
You can’t perform that action at this time.
0 commit comments