Guard inclusion of Aliases.h depending on presence.

This commit is contained in:
2021-03-12 13:37:52 +00:00
parent 41ace8fa4c
commit 889512dbc7
15 changed files with 56 additions and 0 deletions

View File

@@ -2,12 +2,26 @@ if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Retro68" AND NOT ${CMAKE_SYSTEM_NAME} MATCH
return()
endif()
include(CheckIncludeFiles)
project(
fssetter-macos
DESCRIPTION "Filesystem test creator for MacOS"
LANGUAGES C)
add_definitions(-Dmacintosh)
add_definitions(-DRetro68)
CHECK_INCLUDE_FILES("Aliases.h" HAVE_ALIASES_H)
CHECK_INCLUDE_FILES("Multiverse.h" HAVE_MULTIVERSE_H)
if(HAVE_ALIASES_H)
add_definitions(-DHAVE_ALIASES_H)
endif()
if(HAVE_MULTIVERSE_H)
add_definitions(-DHAVE_MULTIVERSE_H)
endif()
set(PLATFORM_SOURCES attr.c deleted.c dirdepth.c filename.c files.c frag.c links.c os.c perms.c rsrcfork.c sparse.c time.c volume.c xattr.c macos.h macos.r)

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>

View File

@@ -29,7 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(macintosh)
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
#include <Aliases.h>
#endif
#include <FileTypesAndCreators.h>
#include <Files.h>
#include <Gestalt.h>