mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Guard inclusion of Aliases.h depending on presence.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user