mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 18:32:18 +08:00
Wrap platform-specific PATH_MAX header in another
This commit is contained in:
parent
c4ac1ab9d0
commit
d431a9f11b
@ -85,6 +85,7 @@ if(NOT WIN32)
|
|||||||
test/mako/blob_granules.hpp
|
test/mako/blob_granules.hpp
|
||||||
test/mako/blob_granules.cpp
|
test/mako/blob_granules.cpp
|
||||||
test/mako/future.hpp
|
test/mako/future.hpp
|
||||||
|
test/mako/limit.hpp
|
||||||
test/mako/logger.hpp
|
test/mako/logger.hpp
|
||||||
test/mako/mako.cpp
|
test/mako/mako.cpp
|
||||||
test/mako/mako.hpp
|
test/mako/mako.hpp
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "blob_granules.hpp"
|
#include "blob_granules.hpp"
|
||||||
|
#include "limit.hpp"
|
||||||
#include "logger.hpp"
|
#include "logger.hpp"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <fdb_api.hpp>
|
#include <fdb_api.hpp>
|
||||||
|
32
bindings/c/test/mako/limit.hpp
Normal file
32
bindings/c/test/mako/limit.hpp
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
* limit.hpp
|
||||||
|
*
|
||||||
|
* This source file is part of the FoundationDB open source project
|
||||||
|
*
|
||||||
|
* Copyright 2013-2022 Apple Inc. and the FoundationDB project authors
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIMIT_HPP
|
||||||
|
#define LIMIT_HPP
|
||||||
|
|
||||||
|
#if defined(__linux__)
|
||||||
|
#include <linux/limits.h>
|
||||||
|
#elif defined(__APPLE__)
|
||||||
|
#include <sys/syslimits.h>
|
||||||
|
#else
|
||||||
|
#include <limits.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
@ -39,16 +39,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#if defined(__linux__)
|
|
||||||
#include <linux/limits.h>
|
|
||||||
#elif defined(__FreeBSD__)
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#elif defined(__APPLE__)
|
|
||||||
#include <sys/syslimits.h>
|
|
||||||
#else
|
|
||||||
#include <limits.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
#include <fmt/printf.h>
|
#include <fmt/printf.h>
|
||||||
|
@ -36,13 +36,7 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#if defined(__linux__)
|
#include "limit.hpp"
|
||||||
#include <linux/limits.h>
|
|
||||||
#elif defined(__APPLE__)
|
|
||||||
#include <sys/syslimits.h>
|
|
||||||
#else
|
|
||||||
#include <limits.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace mako {
|
namespace mako {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user