Guard inclusion of FileTypesAndCreators.h depending on presence.

This commit is contained in:
2021-03-12 13:40:11 +00:00
parent 06f45f0e35
commit 8dfdff7b60
15 changed files with 47 additions and 0 deletions

View File

@@ -13,12 +13,17 @@ add_definitions(-Dmacintosh)
add_definitions(-DRetro68)
CHECK_INCLUDE_FILES("Aliases.h" HAVE_ALIASES_H)
CHECK_INCLUDE_FILES("FileTypesAndCreators.h" HAVE_FILE_TYPES_AND_CREATORS_H)
CHECK_INCLUDE_FILES("Multiverse.h" HAVE_MULTIVERSE_H)
if(HAVE_ALIASES_H)
add_definitions(-DHAVE_ALIASES_H)
endif()
if(HAVE_FILE_TYPES_AND_CREATORS_H)
add_definitions(-DHAVE_FILE_TYPES_AND_CREATORS_H)
endif()
if(HAVE_MULTIVERSE_H)
add_definitions(-DHAVE_MULTIVERSE_H)
endif()

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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