File tree 5 files changed +41
-10
lines changed
5 files changed +41
-10
lines changed Original file line number Diff line number Diff line change 32
32
#endif
33
33
34
34
#if !defined(_WIN32 )
35
- #include <sys/ signal.h>
35
+ #include <signal.h>
36
36
#endif
37
37
38
38
DISPATCH_ASSUME_NONNULL_BEGIN
Original file line number Diff line number Diff line change 3
3
# voucher_private.h are included in the source tarball
4
4
5
5
install (FILES
6
- object .h
6
+ generic_base .h
7
7
generic_unix_base.h
8
8
generic_win_base.h
9
+ object.h
9
10
DESTINATION
10
11
"${INSTALL_OS_HEADERS_DIR} " )
11
12
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2011-2014 Apple Inc. All rights reserved.
3
+ *
4
+ * @APPLE_APACHE_LICENSE_HEADER_START@
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * @APPLE_APACHE_LICENSE_HEADER_END@
19
+ */
20
+
21
+ #ifndef __OS_GENERIC_BASE__
22
+ #define __OS_GENERIC_BASE__
23
+
24
+ #if !defined(__BEGIN_DECLS ) && !defined(__END_DECLS )
25
+ #if defined(__cplusplus )
26
+ #define __BEGIN_DECLS extern "C" {
27
+ #define __END_DECLS }
28
+ #else
29
+ #define __BEGIN_DECLS
30
+ #define __END_DECLS
31
+ #endif
32
+ #endif
33
+
34
+ #endif /* __OS_GENERIC_BASE__ */
Original file line number Diff line number Diff line change 13
13
#ifndef __OS_GENERIC_UNIX_BASE__
14
14
#define __OS_GENERIC_UNIX_BASE__
15
15
16
+ #include <os/generic_base.h>
17
+
16
18
#if __has_include (< sys /sysmacros .h > )
17
19
#include <sys/sysmacros.h>
18
20
#endif
Original file line number Diff line number Diff line change 13
13
#ifndef __OS_GENERIC_WIN_BASE__
14
14
#define __OS_GENERIC_WIN_BASE__
15
15
16
+ #include <os/generic_base.h>
17
+
16
18
// Unices provide `roundup` via sys/param.h
17
19
#define roundup (x , y ) ((((x) + ((y) - 1)) / (y)) * (y))
18
20
// Unices provide `MAX` via sys/param.h
25
27
typedef int mode_t ;
26
28
typedef void pthread_attr_t ;
27
29
28
- #if defined(__cplusplus )
29
- #define __BEGIN_DECLS extern "C" {
30
- #define __END_DECLS }
31
- #else
32
- #define __BEGIN_DECLS
33
- #define __END_DECLS
34
- #endif
35
-
36
30
#ifndef API_AVAILABLE
37
31
#define API_AVAILABLE (...)
38
32
#endif
You can’t perform that action at this time.
0 commit comments