2017-05-25 19:06:47 +01:00
|
|
|
/*
|
2018-11-08 10:20:19 +00:00
|
|
|
* Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
|
2017-05-25 19:06:47 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2018-11-08 10:20:19 +00:00
|
|
|
*/
|
|
|
|
/*
|
2017-05-25 19:06:47 +01:00
|
|
|
* Build platform specific handling.
|
|
|
|
* This allows for builds on non-Posix platforms
|
|
|
|
* e.g. Visual Studio on Windows
|
|
|
|
*/
|
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#ifndef FIPTOOL_PLATFORM_H
|
|
|
|
#define FIPTOOL_PLATFORM_H
|
2017-05-25 19:06:47 +01:00
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#ifndef _MSC_VER
|
2017-05-25 19:06:47 +01:00
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
/* Not Visual Studio, so include Posix Headers. */
|
|
|
|
# include <getopt.h>
|
|
|
|
# include <openssl/sha.h>
|
|
|
|
# include <unistd.h>
|
2017-05-25 19:06:47 +01:00
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
# define BLD_PLAT_STAT stat
|
2017-05-25 19:06:47 +01:00
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#else
|
2017-05-25 19:06:47 +01:00
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
/* Visual Studio. */
|
|
|
|
# include "win_posix.h"
|
2017-05-25 19:06:47 +01:00
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#endif
|
2017-05-25 19:06:47 +01:00
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#endif /* FIPTOOL_PLATFORM_H */
|