fiptool_platform.h 573 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
3
4
 *
 * SPDX-License-Identifier: BSD-3-Clause
5
6
 */
/*
7
8
9
10
11
 * Build platform specific handling.
 * This allows for builds on non-Posix platforms
 * e.g. Visual Studio on Windows
 */

12
13
#ifndef FIPTOOL_PLATFORM_H
#define FIPTOOL_PLATFORM_H
14

15
#ifndef _MSC_VER
16

17
18
19
20
/* Not Visual Studio, so include Posix Headers. */
# include <getopt.h>
# include <openssl/sha.h>
# include <unistd.h>
21

22
# define  BLD_PLAT_STAT stat
23

24
#else
25

26
27
/* Visual Studio. */
# include "win_posix.h"
28

29
#endif
30

31
#endif /* FIPTOOL_PLATFORM_H */