]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Check that we have the CoreFoundation header before including it.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 25 Jan 2006 21:57:18 +0000 (21:57 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 25 Jan 2006 21:57:18 +0000 (21:57 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4985 7a7537e8-13f0-0310-91df-b6672ffda945

cups/language.c

index 6cbe1b0467f8d9ae64fc762d1f89d08e094790a5..4414da4fd9a59bb2e11ec7c4d8d1a9b2ba6ec7e1 100644 (file)
@@ -61,6 +61,9 @@
 #else
 #  include <unistd.h>
 #endif /* WIN32 */
+#ifdef HAVE_COREFOUNDATION_H
+#  include <CoreFoundation/CoreFoundation.h>
+#endif /* HAVE_COREFOUNDATION_H */
 
 
 /*
@@ -68,7 +71,6 @@
  */
 
 #ifdef __APPLE__
-#  include <CoreFoundation/CoreFoundation.h>
 static const char      *appleLangDefault(void);
 #endif /* __APPLE__ */
 static cups_lang_t     *cups_cache_lookup(const char *name,