diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-01 19:02:14 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-01 19:02:14 +0900 |
commit | 397d11d10332fdfed67f5ef3d18c34909fe38479 (patch) | |
tree | 8afdc9cbbe661de57b109e5cf853d3a4ddbcd081 /src/include | |
parent | 207304453338746d16ef43b734010c30aacee412 (diff) | |
download | gnunet-397d11d10332fdfed67f5ef3d18c34909fe38479.tar.gz gnunet-397d11d10332fdfed67f5ef3d18c34909fe38479.zip |
-forgot to actually add platform file
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_platform.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/include/gnunet_platform.h b/src/include/gnunet_platform.h new file mode 100644 index 000000000..40f07ecbd --- /dev/null +++ b/src/include/gnunet_platform.h | |||
@@ -0,0 +1,47 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet | ||
3 | Copyright (C) 2022 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | |||
21 | /** | ||
22 | * @author Martin Schanzenbach | ||
23 | * | ||
24 | * @file | ||
25 | * Convenience header including the default gnunet platform header or | ||
26 | * a defined custom platform header. | ||
27 | * | ||
28 | */ | ||
29 | |||
30 | #ifndef GNUNET_PLATFORM_H | ||
31 | #define GNUNET_PLATFORM_H | ||
32 | |||
33 | #ifdef __cplusplus | ||
34 | extern "C" | ||
35 | { | ||
36 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
37 | } | ||
38 | #endif | ||
39 | #endif | ||
40 | |||
41 | #if defined (GNUNET_CUSTOM_PLATFORM_H) | ||
42 | #include GNUNET_CUSTOM_PLATFORM_H | ||
43 | #else | ||
44 | #include "platform.h" | ||
45 | #endif | ||
46 | |||
47 | #endif | ||