1/*
2 * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 * Build platform specific handling.
7 * This allows for builds on non-Posix platforms
8 * e.g. Visual Studio on Windows
9 */
10
11#ifndef __FIPTOOL_PLATFORM_H__
12#	define __FIPTOOL_PLATFORM_H__
13
14#	ifndef _MSC_VER
15
16		/* Not Visual Studio, so include Posix Headers. */
17#		include <getopt.h>
18#		include <openssl/sha.h>
19#		include <unistd.h>
20
21#		define  BLD_PLAT_STAT stat
22
23#	else
24
25		/* Visual Studio. */
26#		include "win_posix.h"
27
28#	endif
29
30#endif /* __FIPTOOL_PLATFORM_H__ */
31