FastDeploy
latest
Fast & Easy to Deploy!
c_api
fastdeploy_capi
core
fd_common.h
Go to the documentation of this file.
1
// Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#pragma once
16
17
#include <stdint.h>
18
#include <stdio.h>
19
20
#if defined(_WIN32)
21
#ifdef FD_CAPI
22
#define FASTDEPLOY_CAPI_EXPORT __declspec(dllexport)
23
#else
24
#define FASTDEPLOY_CAPI_EXPORT __declspec(dllimport)
25
#endif // FD_CAPI
26
#else
27
#define FASTDEPLOY_CAPI_EXPORT __attribute__((visibility("default")))
28
#endif // _WIN32
29
36
#ifndef __fd_give
37
#define __fd_give
38
#endif
39
#ifndef __fd_take
46
#define __fd_take
47
#endif
48
#ifndef __fd_keep
55
#define __fd_keep
56
#endif
57
58
typedef
int8_t
FD_C_Bool
;
59
#define TRUE 1
60
#define FALSE 0
FD_C_Bool
int8_t FD_C_Bool
Definition:
fd_common.h:58
Generated by
1.8.13