]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add missing file to repo.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 24 Oct 2007 20:55:54 +0000 (20:55 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 24 Oct 2007 20:55:54 +0000 (20:55 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@527 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/versioning.h [new file with mode: 0644]

diff --git a/cups/versioning.h b/cups/versioning.h
new file mode 100644 (file)
index 0000000..cdb2308
--- /dev/null
@@ -0,0 +1,91 @@
+/*
+ * "$Id$"
+ *
+ *   API versioning definitions for the Common UNIX Printing System (CUPS).
+ *
+ *   Copyright 2007 by Apple Inc.
+ *
+ *   These coded instructions, statements, and computer programs are the
+ *   property of Apple Inc. and are protected by Federal copyright
+ *   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+ *   which should have been included with this file.  If this file is
+ *   file is missing or damaged, see the license at "http://www.cups.org/".
+ *
+ *   This file is subject to the Apple OS-Developed Software exception.
+ */
+
+#ifndef _CUPS_VERSIONING_H_
+#  define _CUPS_VERSIONING_H_
+
+/*
+ * This header defines several constants - _CUPS_DEPRECATED,
+ * _CUPS_API_1_1, _CUPS_API_1_1_19, _CUPS_API_1_1_20, _CUPS_API_1_1_21,
+ * _CUPS_API_1_2, _CUPS_API_1_3, _CUPS_API_1_4 - which add compiler-
+ * specific attributes that flag functions that are deprecated or added
+ * in particular releases.  On Mac OS X, the _CUPS_API_* constants are
+ * defined based on the value of the MAC_OS_X_VERSION_MAX_ALLOWED constant
+ * provided by the compiler.
+ */
+
+#  if defined(__APPLE__) && !defined(_CUPS_SOURCE)
+#    if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3
+#      define _CUPS_API_1_1_19 __attribute__((unavailable))
+#      define _CUPS_API_1_1_20 __attribute__((unavailable))
+#      define _CUPS_API_1_1_21 __attribute__((unavailable))
+#      define _CUPS_API_1_2 __attribute__((unavailable))
+#      define _CUPS_API_1_3 __attribute__((unavailable))
+#      define _CUPS_API_1_4 __attribute__((unavailable))
+#    elif MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
+#      define _CUPS_API_1_1_19
+#      define _CUPS_API_1_1_20 __attribute__((unavailable))
+#      define _CUPS_API_1_1_21 __attribute__((unavailable))
+#      define _CUPS_API_1_2 __attribute__((unavailable))
+#      define _CUPS_API_1_3 __attribute__((unavailable))
+#      define _CUPS_API_1_4 __attribute__((unavailable))
+#    elif MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
+#      define _CUPS_API_1_1_19
+#      define _CUPS_API_1_1_20
+#      define _CUPS_API_1_1_21
+#      define _CUPS_API_1_2 __attribute__((unavailable))
+#      define _CUPS_API_1_3 __attribute__((unavailable))
+#      define _CUPS_API_1_4 __attribute__((unavailable))
+#    elif MAC_OS_X_VERSION_MAX_ALLOWED == MAC_OS_X_VERSION_10_5
+#      define _CUPS_API_1_1_19
+#      define _CUPS_API_1_1_20
+#      define _CUPS_API_1_1_21
+#      define _CUPS_API_1_2
+#      define _CUPS_API_1_3
+#      define _CUPS_API_1_4 __attribute__((unavailable))
+#    else
+#      define _CUPS_API_1_1_19
+#      define _CUPS_API_1_1_20
+#      define _CUPS_API_1_1_21
+#      define _CUPS_API_1_2
+#      define _CUPS_API_1_3
+#      define _CUPS_API_1_4
+#    endif /* MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_x */
+#  else
+#    define _CUPS_API_1_1_19
+#    define _CUPS_API_1_1_20
+#    define _CUPS_API_1_1_21
+#    define _CUPS_API_1_2
+#    define _CUPS_API_1_3
+#    define _CUPS_API_1_4
+#  endif /* __APPLE__ */
+
+/*
+ * With GCC 3.0 and higher, we can mark old APIs "deprecated" so you get
+ * a warning at compile-time.
+ */
+
+#  if defined(__GNUC__) && __GNUC__ > 2
+#    define _CUPS_DEPRECATED __attribute__ ((__deprecated__))
+#  else
+#    define _CUPS_DEPRECATED
+#  endif /* __GNUC__ && __GNUC__ > 2 */
+
+#endif /* !_CUPS_VERSIONING_H_ */
+
+/*
+ * End of "$Id$".
+ */