xref: /rk3399_ARM-atf/tools/fiptool/fiptool_platform.h (revision 9685111407907a81a27afa75557aef0ff88edbc4)
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 
27 #	endif
28 
29 #endif /* __FIPTOOL_PLATFORM_H__ */
30