blob: fd0a12048d1180fdd371c8415f98d12f43a76e7d [file] [log] [blame]
Evan Lloyd04dc3442017-05-25 19:06:47 +01001/*
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. */
Evan Lloydd342d742017-05-25 19:16:53 +010026# include "win_posix.h"
Evan Lloyd04dc3442017-05-25 19:06:47 +010027
28# endif
29
30#endif /* __FIPTOOL_PLATFORM_H__ */