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