fiptool_platform.h 573 B

12345678910111213141516171819202122232425262728293031
  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. #ifndef FIPTOOL_PLATFORM_H
  12. #define FIPTOOL_PLATFORM_H
  13. #ifndef _MSC_VER
  14. /* Not Visual Studio, so include Posix Headers. */
  15. # include <getopt.h>
  16. # include <openssl/sha.h>
  17. # include <unistd.h>
  18. # define BLD_PLAT_STAT stat
  19. #else
  20. /* Visual Studio. */
  21. # include "win_posix.h"
  22. #endif
  23. #endif /* FIPTOOL_PLATFORM_H */